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 Constant Summary |
MATCHED
Handshake matched this Draft successfully |
NOT_MATCHED
Handshake is does not match this Draft |
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
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 name
NullPointerException
- if the argument is null
Copyright © 2013 Pusher. All Rights Reserved.