Enum SlingServletFilterScope
java.lang.Object
java.lang.Enum<SlingServletFilterScope>
org.apache.sling.servlets.annotations.SlingServletFilterScope
- All Implemented Interfaces:
Serializable
,Comparable<SlingServletFilterScope>
The possible scopes for the
SlingServletFilter.scope()
annotation.-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFilters are called upon calling theRequestDispatcher.include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
method after the included resource and the Servlet or script to process the include have been resolved before the Servlet or script is called.Filters are called uponHttpServletResponse.sendError(int)
orHttpServletResponse.sendError(int, String)
or any uncaught Throwable before resolving the error handler Servlet or script.Filters are called upon calling the RequestDispatcher.forward method after the included resource and the Servlet or script to process the include have been resolved before the Servlet or script is called.Filters are called upon calling the RequestDispatcher.include method after the included resource and the Servlet or script to process the include have been resolved before the Servlet or script is called.Filters are called once per request hitting Sling from the outside. -
Method Summary
Modifier and TypeMethodDescriptiongetScope()
toString()
static SlingServletFilterScope
Returns the enum constant of this type with the specified name.static SlingServletFilterScope[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
REQUEST
Filters are called once per request hitting Sling from the outside. These filters are called after the resource addressed by the request URL and the Servlet or script to process the request has been resolved before the COMPONENT filters (if any) and the Servlet or script are called.Servlet API Correspondence:
REQUEST
-
COMPONENT
Filters are called upon calling theRequestDispatcher.include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
method after the included resource and the Servlet or script to process the include have been resolved before the Servlet or script is called.Servlet API Correspondence:
REQUEST
,INCLUDE
,FORWARD
-
ERROR
Filters are called uponHttpServletResponse.sendError(int)
orHttpServletResponse.sendError(int, String)
or any uncaught Throwable before resolving the error handler Servlet or script.Servlet API Correspondence:
ERROR
-
INCLUDE
Filters are called upon calling the RequestDispatcher.include method after the included resource and the Servlet or script to process the include have been resolved before the Servlet or script is called.Servlet API Correspondence:
INCLUDE
-
FORWARD
Filters are called upon calling the RequestDispatcher.forward method after the included resource and the Servlet or script to process the include have been resolved before the Servlet or script is called.Servlet API Correspondence:
FORWARD
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getScope
- Returns:
- String representation of the scope
-
toString
- Overrides:
toString
in classEnum<SlingServletFilterScope>
-