public enum SlingServletFilterScope extends java.lang.Enum<SlingServletFilterScope>
SlingServletFilter.scope()
annotation.Enum Constant and Description |
---|
COMPONENT
Filters are called upon calling the
RequestDispatcher.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. |
ERROR
Filters are called upon
HttpServletResponse.sendError(int) or HttpServletResponse.sendError(int, String)
or any uncaught Throwable before resolving the error handler Servlet or script. |
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.
|
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.
|
REQUEST
Filters are called once per request hitting Sling from the outside.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getScope() |
java.lang.String |
toString() |
static SlingServletFilterScope |
valueOf(java.lang.String name)
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.
|
public static final SlingServletFilterScope REQUEST
Servlet API Correspondence: REQUEST
public static final SlingServletFilterScope COMPONENT
RequestDispatcher.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
public static final SlingServletFilterScope ERROR
HttpServletResponse.sendError(int)
or HttpServletResponse.sendError(int, String)
or any uncaught Throwable before resolving the error handler Servlet or script.
Servlet API Correspondence: ERROR
public static final SlingServletFilterScope INCLUDE
Servlet API Correspondence: INCLUDE
public static final SlingServletFilterScope FORWARD
Servlet API Correspondence: FORWARD
public static SlingServletFilterScope[] values()
for (SlingServletFilterScope c : SlingServletFilterScope.values()) System.out.println(c);
public static SlingServletFilterScope valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getScope()
public java.lang.String toString()
toString
in class java.lang.Enum<SlingServletFilterScope>
Copyright © 2022 The Apache Software Foundation. All rights reserved.