public class FrameBuilderRfc6455 extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
FrameBuilderRfc6455.Fin
The Enum Fin.
|
protected static class |
FrameBuilderRfc6455.Opcode
The Enum Opcode.
|
protected static class |
FrameBuilderRfc6455.PayloadLengthType
The Enum PayloadLengthType.
|
protected static class |
FrameBuilderRfc6455.Rsv
The Enum Rsv.
|
| Modifier and Type | Field and Description |
|---|---|
protected static int |
FIN_MASK
The Constant FIN_MASK.
|
protected static int |
MASK_MASK
The Constant MASK_MASK.
|
protected static int |
MAX_FRAME_LENGTH_16
The Constant MAX_FRAME_LENGTH_16.
|
protected static long |
MAX_FRAME_LENGTH_63
The Constant MAX_FRAME_LENGTH_63.
|
protected static byte |
OPCODE_MASK
The Constant OPCODE_MASK.
|
protected static int |
PAYLOAD_LEN_MASK
The Constant PAYLOAD_LEN_MASK.
|
protected static byte |
RSV1_MASK
The Constant RSV1_MASK.
|
protected static byte |
RSV2_MASK
The Constant RSV2_MASK.
|
protected static byte |
RSV3_MASK
The Constant RSV3_MASK.
|
| Constructor and Description |
|---|
FrameBuilderRfc6455() |
| Modifier and Type | Method and Description |
|---|---|
static Frame |
createFrame(FrameHeaderRfc6455 header,
byte[] bodyData)
Creates the frame.
|
static FrameHeaderRfc6455 |
createFrameHeader(byte[] body,
boolean fragmented,
FrameBuilderRfc6455.Opcode opcode)
Creates the frame header.
|
static FrameHeaderRfc6455 |
createFrameHeader(ByteBuffer chunkData,
FrameHeaderRfc6455 previousHeader)
create frame header from parameter bytes
if a invalid frame data received which may throw IllegalArgumentException.
|
protected static final int MAX_FRAME_LENGTH_16
protected static final long MAX_FRAME_LENGTH_63
protected static final int FIN_MASK
protected static final byte RSV1_MASK
protected static final byte RSV2_MASK
protected static final byte RSV3_MASK
protected static final byte OPCODE_MASK
protected static final int MASK_MASK
protected static final int PAYLOAD_LEN_MASK
public static FrameHeaderRfc6455 createFrameHeader(ByteBuffer chunkData, FrameHeaderRfc6455 previousHeader)
chunkData - the chunk datapreviousHeader - the previous headerpublic static FrameHeaderRfc6455 createFrameHeader(byte[] body, boolean fragmented, FrameBuilderRfc6455.Opcode opcode)
body - the contentsfragmented - the fragmentedopcode - the opcodepublic static Frame createFrame(FrameHeaderRfc6455 header, byte[] bodyData)
header - the headerbodyData - the contents dataCopyright © 2021. All rights reserved.