public final class ServletResolverConstants
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_ERROR_HANDLER_METHOD
The HTTP "method" name of an error handler used as the default (value is
"default").
|
static java.lang.String |
DEFAULT_ERROR_HANDLER_RESOURCE_TYPE
The resource type used to select error handlers (value is
"sling/servlet/errorhandler").
|
static java.lang.String |
DEFAULT_RESOURCE_TYPE
The resource type of a registered servlet used as the default servlet if
no other (more specific) servlet or script could be selected (value is
"sling/servlet/default").
|
static java.lang.String |
SLING_SERVLET_EXTENSIONS
The name of the service registration property of a servlet registered as
a service containing the request URL extensions supported by the servlet
for GET requests (value is "sling.servlet.extensions").
|
static java.lang.String |
SLING_SERVLET_METHODS
The name of the service registration property of a servlet registered as
a service containing the request methods supported by the servlet (value
is "sling.servlet.methods").
|
static java.lang.String |
SLING_SERVLET_NAME
The name of the service registration property of a Servlet registered as
a service containing the name of the servlet (value is
"sling.core.servletName").
|
static java.lang.String |
SLING_SERVLET_PATHS
The name of the service registration property of a servlet registered as
a service providing the absolute paths under which the servlet is
accessible as a resource (value is "sling.servlet.paths").
|
static java.lang.String |
SLING_SERVLET_PREFIX
The name of the service registration property of a servlet registered as
a service providing the prefix/index to be used to register this servlet.
|
static java.lang.String |
SLING_SERVLET_RESOURCE_SUPER_TYPE
The name of the service registration property of a servlet registered as
a service containing the resource super type supported by the servlet (value
is "sling.servlet.resourceSuperType").
|
static java.lang.String |
SLING_SERVLET_RESOURCE_TYPES
The name of the service registration property of a servlet registered as
a service containing the resource type(s) supported by the servlet (value
is "sling.servlet.resourceTypes").
|
static java.lang.String |
SLING_SERVLET_SELECTORS
The name of the service registration property of a Servlet registered as
a service containing the request URL selectors supported by the servlet
(value is "sling.servlet.selectors").
|
Constructor and Description |
---|
ServletResolverConstants() |
public static final java.lang.String SLING_SERVLET_PATHS
SLING_SERVLET_PREFIX
property.
The type of this property is a String or String[] (array of strings) denoting the path(s) under which the servlet is registered in the resource tree.
Either this property or the SLING_SERVLET_RESOURCE_TYPES
property must be set or the servlet is ignored.
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.
public static final java.lang.String SLING_SERVLET_RESOURCE_TYPES
SLING_SERVLET_PREFIX
property.
The type of this property is a String or String[] (array of strings) denoting the resource types.
Either this property or the SLING_SERVLET_PATHS
property must be
set, or the servlet is ignored.
If both are set, the servlet is registered using both ways.
public static final java.lang.String SLING_SERVLET_RESOURCE_SUPER_TYPE
The type of this property is a String denoting the resource super type. This
property is ignored if the SLING_SERVLET_RESOURCE_TYPES
property is
not set. Otherwise this property is optional and ignored if not set.
public static final java.lang.String SLING_SERVLET_PREFIX
The name of the service registration property of a servlet registered as
a service providing the prefix/index to be used to register this servlet.
It only is applied as prefix to SLING_SERVLET_PATHS
and
SLING_SERVLET_RESOURCE_TYPES
in case they do not start with a "/".
org.apache.sling.servlets.resolver.internal.SlingServletResolver
service is used.
In case even that one is not set "/" is used as prefix.public static final java.lang.String SLING_SERVLET_SELECTORS
The type of this property is a String or String[] (array of strings)
denoting the resource types. This property is ignored if the
SLING_SERVLET_RESOURCE_TYPES
property is not set. Otherwise this property is
optional and ignored if not set.
public static final java.lang.String SLING_SERVLET_EXTENSIONS
The type of this property is a String or String[] (array of strings)
denoting the resource types. This property is ignored if the
SLING_SERVLET_RESOURCE_TYPES
property is not set.
Otherwise this property is optional and ignored if not set.
public static final java.lang.String SLING_SERVLET_METHODS
The type of this property is a String or String[] (array of strings)
denoting the resource types. This property is ignored if the
SLING_SERVLET_RESOURCE_TYPES
property is not set.
Otherwise this property is optional and assumed to be GET
and HEAD
if not set.
public static final java.lang.String SLING_SERVLET_NAME
component.name
property or the service.pid
is used. If none of the three properties is defined, the Servlet is
ignored.ServletConfig
,
Constant Field Valuespublic static final java.lang.String DEFAULT_RESOURCE_TYPE
org.apache.sling.servlets.resolver.internal.defaults.DefaultServlet
is
used.public static final java.lang.String DEFAULT_ERROR_HANDLER_RESOURCE_TYPE
public static final java.lang.String DEFAULT_ERROR_HANDLER_METHOD
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"