Enum Class DispatcherType
- All Implemented Interfaces:
Serializable
,Comparable<DispatcherType>
,Constable
Enumeration of filter dispatcher types, identical to
DispatcherType
and used in configuration as the servlet API may
not be present.- Since:
- 2.0.0
- Author:
- Stephane Nicoll
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionApply the filter under calls dispatched from an AsyncContext.Apply the filter when an error is handled.Apply the filter on "RequestDispatcher.forward()" calls.Apply the filter on "RequestDispatcher.include()" calls.Apply the filter on ordinary client calls. -
Method Summary
Modifier and TypeMethodDescriptionstatic DispatcherType
Returns the enum constant of this class with the specified name.static DispatcherType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FORWARD
Apply the filter on "RequestDispatcher.forward()" calls. -
INCLUDE
Apply the filter on "RequestDispatcher.include()" calls. -
REQUEST
Apply the filter on ordinary client calls. -
ASYNC
Apply the filter under calls dispatched from an AsyncContext. -
ERROR
Apply the filter when an error is handled.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-