Module org.apache.wicket.core
Package org.apache.wicket.protocol.http
Enum Class ResourceIsolationRequestCycleListener.CsrfAction
java.lang.Object
java.lang.Enum<ResourceIsolationRequestCycleListener.CsrfAction>
org.apache.wicket.protocol.http.ResourceIsolationRequestCycleListener.CsrfAction
- All Implemented Interfaces:
Serializable
,Comparable<ResourceIsolationRequestCycleListener.CsrfAction>
,Constable
- Enclosing class:
- ResourceIsolationRequestCycleListener
public static enum ResourceIsolationRequestCycleListener.CsrfAction
extends Enum<ResourceIsolationRequestCycleListener.CsrfAction>
The action to perform when the outcome of the resource isolation policy is DISALLOWED or
UNKNOWN.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ABORT
Aborts the request and throws an exception when a CSRF request is detected. -
SUPPRESS
Ignores the action of a CSRF request, and just renders the page it was targeted against. -
ALLOW
Detects a CSRF request, logs it and allows the request to continue.
-
-
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
-