|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=TYPE) @Retention(value=SOURCE) @Documented public @interface SlingServlet
Marks servlet classes as SCR component, and allows to configure Sling's resource resolver mapping.
Optional Element Summary | |
---|---|
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[] |
methods
One or more request methods supported by the servlet. |
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |