public final class ServletResolverConstants extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ERROR_HANDLER_METHOD
The HTTP "method" name of an error handler used as the default (value is
"default").
|
static String |
DEFAULT_ERROR_HANDLER_RESOURCE_TYPE
The resource type used to select error handlers (value is
"sling/servlet/errorhandler").
|
static 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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.getServletName()
,
Constant Field Valuespublic static final String DEFAULT_RESOURCE_TYPE
org.apache.sling.servlets.resolver.internal.defaults.DefaultServlet
is
used.public static final String DEFAULT_ERROR_HANDLER_RESOURCE_TYPE
public static final String DEFAULT_ERROR_HANDLER_METHOD
Copyright © 2017 The Apache Software Foundation. All rights reserved.