Class OpCode
- java.lang.Object
-
- org.eclipse.jetty.websocket.common.OpCode
-
public final class OpCode extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static byte
BINARY
OpCode for a Binary Framestatic byte
CLOSE
OpCode for a Close Framestatic byte
CONTINUATION
OpCode for a Continuation Framestatic byte
PING
OpCode for a Ping Framestatic byte
PONG
OpCode for a Pong Framestatic byte
TEXT
OpCode for a Text Framestatic byte
UNDEFINED
An undefined OpCode
-
Constructor Summary
Constructors Constructor Description OpCode()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isControlFrame(byte opcode)
static boolean
isDataFrame(byte opcode)
static boolean
isKnown(byte opcode)
Test for known opcodes (per the RFC spec)static java.lang.String
name(byte opcode)
-
-
-
Field Detail
-
CONTINUATION
public static final byte CONTINUATION
OpCode for a Continuation Frame
-
TEXT
public static final byte TEXT
OpCode for a Text Frame
-
BINARY
public static final byte BINARY
OpCode for a Binary Frame
-
CLOSE
public static final byte CLOSE
OpCode for a Close Frame
-
PING
public static final byte PING
OpCode for a Ping Frame
-
PONG
public static final byte PONG
OpCode for a Pong Frame
-
UNDEFINED
public static final byte UNDEFINED
An undefined OpCode- See Also:
- Constant Field Values
-
-
Method Detail
-
isControlFrame
public static boolean isControlFrame(byte opcode)
-
isDataFrame
public static boolean isDataFrame(byte opcode)
-
isKnown
public static boolean isKnown(byte opcode)
Test for known opcodes (per the RFC spec)- Parameters:
opcode
- the opcode to test- Returns:
- true if known. false if unknown, undefined, or reserved
-
name
public static java.lang.String name(byte opcode)
-
-