public static enum WebSocket.State extends Enum<WebSocket.State>
| Enum Constant and Description |
|---|
CLOSED |
CLOSING |
CONNECTED |
HANDSHAKE_FAILED |
HANDSHAKING |
NONE |
| Modifier and Type | Method and Description |
|---|---|
static WebSocket.State | valueOf(String name)Returns the enum constant of this type with the specified name. |
static WebSocket.State[] | values()Returns an array containing the constants of this enum type, in the order they are declared. |
public static final WebSocket.State NONE
public static final WebSocket.State HANDSHAKING
public static final WebSocket.State HANDSHAKE_FAILED
public static final WebSocket.State CONNECTED
public static final WebSocket.State CLOSING
public static final WebSocket.State CLOSED
public static WebSocket.State[] values()
for (WebSocket.State c : WebSocket.State.values()) System.out.println(c);
public static WebSocket.State valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullPhantom® and NetPhantom® are registered trademarks of Mindus SARL.
© 2026 Mindus SARL. All rights reserved.