public static enum WebSocketFrame.Opcode extends Enum<WebSocketFrame.Opcode>
Enum Constant and Description |
---|
BINARY |
CLOSING |
CONTINUOUS |
PING |
PONG |
TEXT |
Modifier and Type | Method and Description |
---|---|
static WebSocketFrame.Opcode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebSocketFrame.Opcode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebSocketFrame.Opcode CONTINUOUS
public static final WebSocketFrame.Opcode TEXT
public static final WebSocketFrame.Opcode BINARY
public static final WebSocketFrame.Opcode PING
public static final WebSocketFrame.Opcode PONG
public static final WebSocketFrame.Opcode CLOSING
public static WebSocketFrame.Opcode[] values()
for (WebSocketFrame.Opcode c : WebSocketFrame.Opcode.values()) System.out.println(c);
public static WebSocketFrame.Opcode 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 nullCopyright © 2020 Voovan. All rights reserved.