|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=TYPE) @Retention(value=CLASS) @Documented public @interface SlingServlet
Marks servlet classes as SCR component, and allows to configure Sling's resource resolver mapping.
Optional Element Summary | |
---|---|
java.lang.String |
description
This is generally used as a description for the object described by the meta type. |
java.lang.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". |
java.lang.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. |
java.lang.String[] |
methods
One or more request methods supported by the servlet. |
java.lang.String |
name
Defines the Component name also used as the PID for the Configuration Admin Service. |
java.lang.String[] |
paths
One or more paths under which the servlet will be registered in the Sling Resource tree. |
java.lang.String[] |
resourceTypes
One or more resource types which are handled by this servlet. |
java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.String name
public abstract boolean metatype
metatype.xml
file for this component. Otherwise no Metatype
Service data is generated for this component.
public abstract java.lang.String label
public abstract java.lang.String description
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |