Annotation Type SlingServletPaths

    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String[] value
      The absolute paths under which the servlet is accessible as a resource.
    • Element Detail

      • value

        java.lang.String[] value
        The absolute paths under which the servlet is accessible as a resource. A relative path is made absolute by prefixing it with the value set through the SlingServletPrefix annotation.

        This annotation or SlingServletResourceTypes should be used to properly register the servlet in Sling. If both are set the servlet is registered using both ways.

        A servlet using this property might be ignored unless its path is included in the Execution Paths servletresolver.paths configuration setting of the org.apache.sling.servlets.resolver.internal.SlingServletResolver service.

        Returns:
        the absolute paths under which the servlet is accessible as a resource
        See Also:
        ServletResolverConstants.SLING_SERVLET_PATHS