Package org.java_websocket.drafts
Enum Draft.HandshakeState
- java.lang.Object
-
- java.lang.Enum<Draft.HandshakeState>
-
- org.java_websocket.drafts.Draft.HandshakeState
-
- All Implemented Interfaces:
Serializable
,Comparable<Draft.HandshakeState>
- Enclosing class:
- Draft
public static enum Draft.HandshakeState extends Enum<Draft.HandshakeState>
Enum which represents the states a handshake may be in
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MATCHED
Handshake matched this Draft successfullyNOT_MATCHED
Handshake is does not match this Draft
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Draft.HandshakeState
valueOf(String name)
Returns the enum constant of this type with the specified name.static Draft.HandshakeState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MATCHED
public static final Draft.HandshakeState MATCHED
Handshake matched this Draft successfully
-
NOT_MATCHED
public static final Draft.HandshakeState NOT_MATCHED
Handshake is does not match this Draft
-
-
Method Detail
-
values
public static Draft.HandshakeState[] 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 (Draft.HandshakeState c : Draft.HandshakeState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Draft.HandshakeState valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-