public static enum WebSocketMessage.Type extends Enum<WebSocketMessage.Type>
Enum Constant and Description |
---|
BINARY
Binary WebSocket message.
|
PING
WebSocket ping.
|
PONG
WebSocket pong.
|
TEXT
Text WebSocket message.
|
Modifier and Type | Method and Description |
---|---|
static WebSocketMessage.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebSocketMessage.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebSocketMessage.Type TEXT
public static final WebSocketMessage.Type BINARY
public static final WebSocketMessage.Type PING
public static final WebSocketMessage.Type PONG
public static WebSocketMessage.Type[] values()
for (WebSocketMessage.Type c : WebSocketMessage.Type.values()) System.out.println(c);
public static WebSocketMessage.Type 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 null