Class OverlayServlet

  • All Implemented Interfaces:
    java.io.Serializable, Servlet, ServletConfig

    @SlingServlet(selectors="overlay",
                  resourceTypes="sling/servlet/default",
                  methods="GET",
                  metatype=false)
    public class OverlayServlet
    extends AbstractPredicateServlet
    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.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 Detail

    • Constructor Detail

      • OverlayServlet

        public OverlayServlet()