@Target(value=TYPE) @Retention(value=CLASS) @Documented public @interface SlingServlet
Modifier and Type | Optional Element and Description |
---|---|
String |
description
This is generally used as a description for the object described by the
meta type.
|
String[] |
extensions
One or more request URL extensions supported by the servlet.
|
boolean |
generateComponent
Whether to generate a default SCR component tag.
|
boolean |
generateService
Whether to generate a default SCR service tag with
"interface=javax.servlet.Servlet".
|
String |
label
This is generally used as a title for the object described by the meta
type.
|
boolean |
metatype
Whether Metatype Service data is generated or not.
|
String[] |
methods
One or more request methods supported by the servlet.
|
String |
name
Defines the Component name also used as the PID for the Configuration
Admin Service.
|
String[] |
paths
One or more paths under which the servlet will be registered in the
Sling Resource tree.
|
String[] |
resourceTypes
One or more resource types which are handled by this servlet.
|
String[] |
selectors
One ore more request URL selectors supported by the servlet.
|
public abstract boolean generateComponent
Component
annotation can be added manually with defined whatever configuration
needed.public abstract boolean generateService
Service
annotation can be added
manually with defined whatever configuration needed.public abstract String[] paths
This attribute is converted to values for the
sling.servlet.paths
property.
Note that to be used as a servlet for Sling either this attribute or
the resourceTypes()
attribute or both must be set.
public abstract String[] resourceTypes
This attribute is converted to values for the
sling.servlet.resourceTypes
property.
Note that to be used as a servlet for Sling either this attribute or
the paths()
attribute or both must be set.
public abstract String[] selectors
This attribute is converted to values for the
sling.servlet.selectors
property and is ignored if the
resourceTypes()
attribute is not set.
public abstract String[] extensions
This attribute is converted to values for the
sling.servlet.extensions
property and is ignored if the
resourceTypes()
attribute is not set.
public abstract String[] methods
This attribute is converted to values for the
sling.servlet.methods
property and is ignored if the
resourceTypes()
attribute is not set.
public abstract String name
public abstract boolean metatype
metatype.xml
file for this component. Otherwise no Metatype
Service data is generated for this component.public abstract String label
public abstract String description
Copyright © 2006–2024 The Apache Software Foundation. All rights reserved.