Enum Class SecurityTokenHandler.GetActionPolicy
java.lang.Object
java.lang.Enum<SecurityTokenHandler.GetActionPolicy>
fr.paris.lutece.portal.service.security.SecurityTokenHandler.GetActionPolicy
- All Implemented Interfaces:
Serializable,Comparable<SecurityTokenHandler.GetActionPolicy>,Constable
- Enclosing class:
- SecurityTokenHandler
public static enum SecurityTokenHandler.GetActionPolicy
extends Enum<SecurityTokenHandler.GetActionPolicy>
What happens when an MVC
@Action is requested with another method than POST (a link, a GET fetch, a HEAD request).-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe action runs without security token check (behaviour before LUT-33977).Same as TOKEN, and a warning names the controller, the action and the referer, to find the plugins to migrate.The request is answered by a 405 Method Not Allowed, with the header Allow: POST, and the same warning.The action runs when its security token is valid. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static SecurityTokenHandler.GetActionPolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
ALLOW
The action runs without security token check (behaviour before LUT-33977). -
TOKEN
The action runs when its security token is valid. -
LOG
Same as TOKEN, and a warning names the controller, the action and the referer, to find the plugins to migrate. -
REFUSE
The request is answered by a 405 Method Not Allowed, with the header Allow: POST, and the same warning.
-
-
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
-