public static enum WebsocketFrameHeader.OpCode extends java.lang.Enum<WebsocketFrameHeader.OpCode>
Enum Constant and Description |
---|
BINARY |
CLOSE |
CONTINUATION |
PING |
PONG |
TEXT |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
static WebsocketFrameHeader.OpCode |
of(int code) |
static WebsocketFrameHeader.OpCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WebsocketFrameHeader.OpCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebsocketFrameHeader.OpCode CONTINUATION
public static final WebsocketFrameHeader.OpCode TEXT
public static final WebsocketFrameHeader.OpCode BINARY
public static final WebsocketFrameHeader.OpCode CLOSE
public static final WebsocketFrameHeader.OpCode PING
public static final WebsocketFrameHeader.OpCode PONG
public static final WebsocketFrameHeader.OpCode UNKNOWN
public static WebsocketFrameHeader.OpCode[] values()
for (WebsocketFrameHeader.OpCode c : WebsocketFrameHeader.OpCode.values()) System.out.println(c);
public static WebsocketFrameHeader.OpCode 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 nullpublic int getCode()
public static WebsocketFrameHeader.OpCode of(int code)