@ComponentPropertyType
public @interface SlingServletResourceTypes
ServletResolverConstants
)
to register the annotated servlet component as Sling servlet for a specific resource type.Modifier and Type | Fields and 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)
|
Modifier and Type | Required Element and Description |
---|---|
java.lang.String[] |
resourceTypes
The resource type(s) supported by the servlet (value
is "sling.servlet.resourceTypes").
|
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String[] |
extensions
The request URL extensions supported by the servlet
for GET requests.
|
java.lang.String[] |
methods
The request methods supported by the servlet.
|
java.lang.String[] |
selectors
One ore more request URL selectors supported by the servlet.
|
public static final java.lang.String PREFIX_
public abstract java.lang.String[] resourceTypes
SlingServletPrefix
annotation.public abstract java.lang.String[] selectors
ServletResolverConstants.SLING_SERVLET_SELECTORS
public abstract java.lang.String[] extensions
It this is not set, the servlet is not limited to certain extensions.
ServletResolverConstants.SLING_SERVLET_EXTENSIONS
public abstract java.lang.String[] methods
If this is not set (i.e. empty array) it is assumed to be GET
and HEAD
.
ServletResolverConstants.SLING_SERVLET_METHODS
,
HTTP 1.1 Spec MethodsCopyright © 2018 The Apache Software Foundation. All rights reserved.