28 */ |
28 */ |
29 package de.uapcore.lightpit.modules; |
29 package de.uapcore.lightpit.modules; |
30 |
30 |
31 import de.uapcore.lightpit.LightPITModule; |
31 import de.uapcore.lightpit.LightPITModule; |
32 import de.uapcore.lightpit.AbstractLightPITServlet; |
32 import de.uapcore.lightpit.AbstractLightPITServlet; |
|
33 import de.uapcore.lightpit.HttpMethod; |
|
34 import de.uapcore.lightpit.RequestMapping; |
|
35 import de.uapcore.lightpit.ResponseType; |
33 import javax.servlet.annotation.WebServlet; |
36 import javax.servlet.annotation.WebServlet; |
|
37 import javax.servlet.http.HttpServletRequest; |
|
38 import javax.servlet.http.HttpServletResponse; |
34 |
39 |
35 |
40 |
36 @LightPITModule( |
41 @LightPITModule( |
37 bundleBaseName = "de.uapcore.lightpit.resources.localization.versions", |
42 bundleBaseName = "de.uapcore.lightpit.resources.localization.versions", |
38 modulePath = "versions" |
43 modulePath = "versions" |
40 @WebServlet( |
45 @WebServlet( |
41 name = "VersionsModule", |
46 name = "VersionsModule", |
42 urlPatterns = "/versions/*" |
47 urlPatterns = "/versions/*" |
43 ) |
48 ) |
44 public final class VersionsModule extends AbstractLightPITServlet { |
49 public final class VersionsModule extends AbstractLightPITServlet { |
45 |
50 @RequestMapping(method = HttpMethod.GET) |
|
51 public ResponseType handle(HttpServletRequest req, HttpServletResponse resp) { |
|
52 |
|
53 return ResponseType.HTML_FULL; |
|
54 } |
46 } |
55 } |