public enum WebSocketFrameType extends Enum<WebSocketFrameType>
Enum Constant and Description |
---|
BINARY WebSocketFrame contains binary data |
CLOSE WebSocketFrame which requests the close of the WebSockets connection |
CONTINUATION WebSocketFrame which notify about more data to come |
PING WebSocketFrame which represent a ping request |
PONG WebSocketFrame which should be issued after a PING was received |
TEXT WebSocketFrame contains UTF-8 encoded String |
UNKOWN Unknown frame-type |
Modifier and Type | Method and Description |
---|---|
static WebSocketFrameType | valueOf(String name) Returns the enum constant of this type with the specified name. |
static WebSocketFrameType[] | values() Returns an array containing the constants of this enum type, in the order they are declared. |
public static final WebSocketFrameType BINARY
public static final WebSocketFrameType TEXT
String
public static final WebSocketFrameType PING
public static final WebSocketFrameType PONG
PING
was receivedpublic static final WebSocketFrameType CLOSE
public static final WebSocketFrameType CONTINUATION
public static final WebSocketFrameType UNKOWN
public static WebSocketFrameType[] values()
for (WebSocketFrameType c : WebSocketFrameType.values()) System.out.println(c);
public static WebSocketFrameType 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 JBoss by Red Hat. All rights reserved.