@ComponentPropertyType
public @interface SlingServletResourceTypes
ServletResolverConstants
)
to register the annotated servlet component as Sling servlet for a specific resource type.ServletResolverConstants
,
Felix SCR annotationModifier and Type | Fields and Description |
---|---|
static 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 |
---|---|
String[] |
resourceTypes
The resource type(s) supported by the servlet (value
is "sling.servlet.resourceTypes").
|
Modifier and Type | Optional Element and Description |
---|---|
String[] |
extensions
The request URL extensions supported by the servlet.
|
String[] |
methods
The request methods supported by the servlet.
|
String |
resourceSuperType
The resource super type from which the servlet inherits (value is "sling.servlet.resourceSuperType").
|
String[] |
selectors
One ore more request URL selectors supported by the servlet.
|
public static final String PREFIX_
public abstract String[] resourceTypes
SlingServletPrefix
annotation.public abstract String resourceSuperType
In order for this property to be taken into consideration, the org.apache.sling.servlets.resolver
bundle needs to be
deployed on the system, version 2.5.0 or above.
ServletResolverConstants.SLING_SERVLET_RESOURCE_SUPER_TYPE
,
Apache Sling Resource Typespublic abstract String[] selectors
ServletResolverConstants.SLING_SERVLET_SELECTORS
public abstract String[] extensions
It this is not set, the servlet is not limited to certain extensions.
ServletResolverConstants.SLING_SERVLET_EXTENSIONS
public abstract 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 © 2007–2018 The Apache Software Foundation. All rights reserved.