Package com.day.cq.commons.servlets
Class OverlayServlet
- All Implemented Interfaces:
Serializable,Servlet,ServletConfig
@SlingServlet(selectors="overlay",
resourceTypes="sling/servlet/default",
methods="GET",
metatype=false)
@Deprecated
public class OverlayServlet
extends AbstractPredicateServlet
Deprecated.
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.
- See Also:
-
Field Summary
FieldsFields inherited from class com.day.cq.commons.servlets.AbstractPredicateServlet
FILTER_PARAM, PATH_PARAM, PREDICATE_PARAM -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.day.cq.commons.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
-
OVERLAY
Deprecated.selector value- See Also:
-
-
Constructor Details
-
OverlayServlet
public OverlayServlet()Deprecated.
-
OverlayServletinsteadSample 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