src/java/de/uapcore/lightpit/AbstractLightPITServlet.java

changeset 21
b213fef2539e
parent 20
bd1a76c91d5b
child 22
5a91fb7067af
--- a/src/java/de/uapcore/lightpit/AbstractLightPITServlet.java	Sat Mar 31 19:35:04 2018 +0200
+++ b/src/java/de/uapcore/lightpit/AbstractLightPITServlet.java	Sun Apr 01 18:16:47 2018 +0200
@@ -266,10 +266,13 @@
             LOG.trace("Continuing session {} with language {}", session.getId(), sessionLocale);
         }
         
+        // set some internal request attributes
         req.setAttribute(Constants.REQ_ATTR_PATH, Functions.fullPath(req));
         req.setAttribute(Constants.REQ_ATTR_MODULE_CLASSNAME, this.getClass().getName());
         moduleInfoELProxy.ifPresent((proxy) -> req.setAttribute(Constants.REQ_ATTR_MODULE_INFO, proxy));
         
+        
+        // call the handler, if available, or send an HTTP 404 error
         Optional<HandlerMethod> mapping = findMapping(method, req);
         if (mapping.isPresent()) {
             forwardAsSepcified(mapping.get().apply(req, resp), req, resp);

mercurial