public static enum WebSocket.ReadyState extends java.lang.Enum<WebSocket.ReadyState>
| Enum Constant and Description |
|---|
CLOSED |
CLOSING |
CONNECTING |
OPEN |
| Modifier and Type | Method and Description |
|---|---|
static WebSocket.ReadyState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WebSocket.ReadyState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebSocket.ReadyState CONNECTING
public static final WebSocket.ReadyState OPEN
public static final WebSocket.ReadyState CLOSING
public static final WebSocket.ReadyState CLOSED
public static WebSocket.ReadyState[] values()
for (WebSocket.ReadyState c : WebSocket.ReadyState.values()) System.out.println(c);
public static WebSocket.ReadyState valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null