src/java/de/uapcore/lightpit/modules/HomeModule.java

changeset 12
005d27918b57
parent 10
89e3e6e28b69
child 24
8137ec335416
equal deleted inserted replaced
11:737ab27e37b3 12:005d27918b57
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 * Entry point for the application. 41 * Entry point for the application.
37 */ 42 */
38 @LightPITModule( 43 @LightPITModule(
43 name = "HomeModule", 48 name = "HomeModule",
44 urlPatterns = "/home/*" 49 urlPatterns = "/home/*"
45 ) 50 )
46 public final class HomeModule extends AbstractLightPITServlet { 51 public final class HomeModule extends AbstractLightPITServlet {
47 52
53 @RequestMapping(method = HttpMethod.GET)
54 public ResponseType handle(HttpServletRequest req, HttpServletResponse resp) {
55
56 return ResponseType.HTML_FULL;
57 }
48 } 58 }

mercurial