|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<FrameType>
org.simpleframework.http.socket.FrameType
public enum FrameType
The FrameType represents the set of opcodes defined
in RFC 6455. The base framing protocol uses a opcode to define the
interpretation of the payload data for the frame.
Frame| Enum Constant Summary | |
|---|---|
BINARY
A binary frame identifies a message that contains binary data. |
|
CLOSE
A close frame identifies a frame used to terminate a connection. |
|
CONTINUATION
A continuation frame identifies a fragment from a larger message. |
|
PING
A ping frame is a heartbeat used to determine connection health. |
|
PONG
A pong frame is sent is sent in response to a ping frame. |
|
TEXT
A text frame identifies a message that contains UTF-8 text data. |
|
| Field Summary | |
|---|---|
int |
code
This is the integer value for the opcode. |
| Method Summary | |
|---|---|
boolean |
isClose()
This is used to determine if a frame is a close frame. |
boolean |
isPing()
This is used to determine if a frame is a ping frame. |
boolean |
isPong()
This is used to determine if a frame is a pong frame. |
boolean |
isText()
This is used to determine if a frame is a text frame. |
static FrameType |
resolveType(int octet)
This is used to acquire the frame type given an opcode. |
static FrameType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static FrameType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final FrameType CONTINUATION
public static final FrameType TEXT
public static final FrameType BINARY
public static final FrameType CLOSE
public static final FrameType PING
public static final FrameType PONG
| Field Detail |
|---|
public final int code
| Method Detail |
|---|
public static FrameType[] values()
for (FrameType c : FrameType.values()) System.out.println(c);
public static FrameType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic boolean isText()
public boolean isClose()
public boolean isPong()
public boolean isPing()
public static FrameType resolveType(int octet)
octet - this is the octet representing the opcode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||