Enum SessionCreationPolicy
- All Implemented Interfaces:
Comparable<SessionCreationPolicy>
Whether a chain may use the HTTP session.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEvery request under the chain gets a session.A session starts when the chain needs one: at sign-in, or to remember where an anonymous request was going.The chain never starts a session and uses one that is already there.The chain neither starts nor reads a session: each request carries its own credentials. -
Method Summary
Modifier and TypeMethodDescriptionstatic SessionCreationPolicyReturns the enum constant of this type with the specified name.static SessionCreationPolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
ALWAYS
Every request under the chain gets a session. -
NEVER
The chain never starts a session and uses one that is already there. -
IF_REQUIRED
A session starts when the chain needs one: at sign-in, or to remember where an anonymous request was going. The default. -
STATELESS
The chain neither starts nor reads a session: each request carries its own credentials.
-
-
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
-