Package com.day.cq.commons.servlets
Class OverlayServlet
- java.lang.Object
 - 
- javax.servlet.GenericServlet
 - 
- org.apache.sling.api.servlets.SlingSafeMethodsServlet
 - 
- org.apache.sling.api.servlets.SlingAllMethodsServlet
 - 
- com.day.cq.commons.servlets.AbstractPredicateServlet
 - 
- com.day.cq.commons.servlets.OverlayServlet
 
 
 
 
 
 
- 
- All Implemented Interfaces:
 java.io.Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
@SlingServlet(selectors="overlay", resourceTypes="sling/servlet/default", methods="GET", metatype=false) public class OverlayServlet extends AbstractPredicateServletForwards to the resource considering the resource search path ("/apps", "/libs", etc.). If a suffix is provided a resource of the name of the requested resource will be searched inside the paths provided by the suffix. If the suffix contains a period after the last slash the part behind this period will be ignored.
Sample without suffix:
Request: /libs/x/y/z.overlay.infinity.json
The request will be forwarded to the first resource found in the following order (taking "/apps" and "/libs" as given resource search paths):
/apps/x/y/z.infinity.json
/libs/x/y/z.infinity.json
Sample with suffix:
Request: /libs/x/y/z.overlay.infinity.json/a/b.json
The request will be forwarded to the first resource found in the following order (taking "/apps" and "/libs" as given resource search paths):
/apps/x/y/a/b/z.infinity.json
/libs/x/y/a/b/z.infinity.json
/apps/x/y/a/z.infinity.json
/libs/x/y/a/z.infinity.json
/apps/x/y/z.infinity.json
/libs/x/y/z.infinity.json- See Also:
 - Serialized Form
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringOVERLAYselector value- 
Fields inherited from class com.day.cq.commons.servlets.AbstractPredicateServlet
FILTER_PARAM, PATH_PARAM, PREDICATE_PARAM 
 - 
 
- 
Constructor Summary
Constructors Constructor Description OverlayServlet() 
- 
Method Summary
- 
Methods inherited from class com.day.cq.commons.servlets.AbstractPredicateServlet
getPredicate 
- 
Methods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServlet
getServletInfo, service 
 - 
 
 - 
 
- 
- 
Field Detail
- 
OVERLAY
public static final java.lang.String OVERLAY
selector value- See Also:
 - Constant Field Values
 
 
 - 
 
 -