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