public static enum WebSocketMessage.Opcode extends Enum<WebSocketMessage.Opcode>
WebSocketMessage
must contain one of the below opcode.
(see https://tools.ietf.org/html/rfc6455#page-65 for more information)Enum Constant and Description |
---|
BINARY |
CLOSING |
CONNECTED |
CONTINUOUS |
PING |
PONG |
TEXT |
TIMEOUT |
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
static WebSocketMessage.Opcode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebSocketMessage.Opcode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebSocketMessage.Opcode CONTINUOUS
public static final WebSocketMessage.Opcode TEXT
public static final WebSocketMessage.Opcode BINARY
public static final WebSocketMessage.Opcode CLOSING
public static final WebSocketMessage.Opcode PING
public static final WebSocketMessage.Opcode PONG
public static final WebSocketMessage.Opcode CONNECTED
public static final WebSocketMessage.Opcode TIMEOUT
public static WebSocketMessage.Opcode[] values()
for (WebSocketMessage.Opcode c : WebSocketMessage.Opcode.values()) System.out.println(c);
public static WebSocketMessage.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 nullpublic int getCode()
Copyright © 2010–2016 AdroitLogic. All rights reserved.