Mercurial Hosting > nabble
comparison src/nabble/view/web/tools/NamlEditor.java @ 0:7ecd1a4ef557
add content
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 21 Mar 2019 19:15:52 -0600 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:7ecd1a4ef557 |
---|---|
1 package nabble.view.web.tools; | |
2 | |
3 import javax.servlet.ServletException; | |
4 import javax.servlet.http.HttpServlet; | |
5 import javax.servlet.http.HttpServletRequest; | |
6 import javax.servlet.http.HttpServletResponse; | |
7 import java.io.IOException; | |
8 | |
9 /** | |
10 * Similar to the NamlEditor in the template package, but this one | |
11 * doesn't required login. This is used only by Nabble admins. | |
12 */ | |
13 public class NamlEditor extends HttpServlet { | |
14 | |
15 protected void service(HttpServletRequest request, HttpServletResponse response) | |
16 throws ServletException, IOException | |
17 { | |
18 nabble.view.web.template.NamlEditor.buildPage(request, response); | |
19 } | |
20 | |
21 public static class Save extends HttpServlet { | |
22 | |
23 protected void service(HttpServletRequest request, HttpServletResponse response) | |
24 throws ServletException, IOException | |
25 { | |
26 nabble.view.web.template.NamlEditor.save(request, response); | |
27 } | |
28 } | |
29 | |
30 public static class UploadForm extends HttpServlet { | |
31 | |
32 protected void service(HttpServletRequest request, HttpServletResponse response) | |
33 throws ServletException, IOException | |
34 { | |
35 nabble.view.web.template.NamlEditor.uploadForm(request, response); | |
36 } | |
37 } | |
38 | |
39 public static class Upload extends HttpServlet { | |
40 | |
41 protected void service(HttpServletRequest request, HttpServletResponse response) | |
42 throws ServletException, IOException | |
43 { | |
44 nabble.view.web.template.NamlEditor.upload(request, response); | |
45 } | |
46 } | |
47 | |
48 } |