Package org.eclipse.jetty.server.session
Enum Session.State
- java.lang.Object
-
- java.lang.Enum<Session.State>
-
- org.eclipse.jetty.server.session.Session.State
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Session.State>
- Enclosing class:
- Session
public static enum Session.State extends java.lang.Enum<Session.State>
State Validity states of a session
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHANGING
INVALID
INVALIDATING
VALID
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Session.State
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Session.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VALID
public static final Session.State VALID
-
INVALID
public static final Session.State INVALID
-
INVALIDATING
public static final Session.State INVALIDATING
-
CHANGING
public static final Session.State CHANGING
-
-
Method Detail
-
values
public static Session.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Session.State c : Session.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Session.State valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-