Class OverlayServlet
java.lang.Object
javax.servlet.GenericServlet
org.apache.sling.api.servlets.SlingSafeMethodsServlet
org.apache.sling.api.servlets.SlingAllMethodsServlet
com.day.cq.commons.predicates.servlets.AbstractPredicateServlet
com.day.cq.commons.predicates.servlets.OverlayServlet
- All Implemented Interfaces:
Serializable,Servlet,ServletConfig
Forwards 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.aemOverlay.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.aemOverlay.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
Sample without suffix:
Request: /libs/x/y/z.aemOverlay.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.aemOverlay.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:
-
Field Summary
FieldsFields inherited from class com.day.cq.commons.predicates.servlets.AbstractPredicateServlet
FILTER_PARAM, PATH_PARAM, PREDICATE_PARAM -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.day.cq.commons.predicates.servlets.AbstractPredicateServlet
getPredicateMethods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServlet
getServletInfo, serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, log
-
Field Details
-
AEM_OVERLAY
selector value- See Also:
-
-
Constructor Details
-
OverlayServlet
public OverlayServlet()
-