Annotation Type SlingServletPathsStrict

    • Field Summary

      Fields 
      Modifier and Type Fields Description
      static java.lang.String PREFIX_
      Prefix for every property being generated from the annotations elements (as defined in OSGi 7 Compendium, 112.8.2.1)
    • Required Element Summary

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

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String[] extensions
      The request URL extensions supported by the servlet.
      java.lang.String[] methods
      The HTTP request methods supported by the servlet.
      boolean paths_strict
      Activate the strict resolution mode.
      java.lang.String[] selectors
      One or more request URL selectors supported by the servlet.
    • Field Detail

      • PREFIX_

        static final java.lang.String PREFIX_
        Prefix for every property being generated from the annotations elements (as defined in OSGi 7 Compendium, 112.8.2.1)
    • Element Detail

      • paths

        java.lang.String[] paths
        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
      • paths_strict

        boolean paths_strict
        Activate the strict resolution mode. Must be set to true (which is the default) for the other options besides "paths" to be taken into account. This value should NOT BE CHANGED: this annotation makes no sense if this value is not "true". We don't have a way currently to define constant values here (SLING-9055)
        Returns:
        the "strict" option value
        Default:
        true
      • selectors

        java.lang.String[] selectors
        One or more request URL selectors supported by the servlet. If specified, all selectors must match for the servlet to be selected.
        Returns:
        the selector(s)
        Default:
        {}
      • extensions

        java.lang.String[] extensions
        The request URL extensions supported by the servlet. If specified, one of these must match the request for the servlet to be selected.
        Returns:
        the extension(s)
        See Also:
        ServletResolverConstants.SLING_SERVLET_EXTENSIONS
        Default:
        {}
      • methods

        java.lang.String[] methods
        The HTTP request methods supported by the servlet. If specified, the request's method must match this value for the servlet to be selected.
        Returns:
        the methods(s)
        See Also:
        HTTP 1.1 Spec Methods
        Default:
        {}