public class FrameHeaderDraft06 extends Object implements FrameHeader
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
fragmented
The fragmented.
|
protected int |
headerLength
The header length.
|
protected FrameBuilderDraft06.Opcode |
opcode
The opcode.
|
protected long |
payloadLength
The payload length.
|
protected FrameBuilderDraft06.PayloadLengthType |
payloadLengthType
The payload length type.
|
protected FrameBuilderDraft06.Opcode |
realOpcode
The real opcode.
|
| Constructor and Description |
|---|
FrameHeaderDraft06(boolean fragmented,
int headerLength,
FrameBuilderDraft06.PayloadLengthType payloadLengthType,
long payloadLength,
FrameBuilderDraft06.Opcode opcode)
Instantiates a new frame header draft06.
|
FrameHeaderDraft06(boolean fragmented,
int headerLength,
FrameBuilderDraft06.PayloadLengthType payloadLengthType,
long payloadLength,
FrameBuilderDraft06.Opcode opcode,
FrameBuilderDraft06.Opcode realOpcode)
Instantiates a new frame header draft06.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getContentsLength()
Gets the contents length.
|
long |
getFrameLength()
Gets the frame length.
|
int |
getHeaderLength()
Gets the header length.
|
FrameBuilderDraft06.Opcode |
getOpcode()
Gets the opcode.
|
FrameBuilderDraft06.Opcode |
getRealOpcode()
If opcode is CONTINUATION, real opcode has previous non-CONTINUATION opcode
or not real opcode is null.
|
boolean |
isContinuation()
Checks if is continuation.
|
boolean |
isFragmented()
Checks if is fragmented.
|
ByteBuffer |
toByteBuffer()
To byte buffer.
|
protected final long payloadLength
protected final FrameBuilderDraft06.PayloadLengthType payloadLengthType
protected final int headerLength
protected final boolean fragmented
protected final FrameBuilderDraft06.Opcode opcode
protected FrameBuilderDraft06.Opcode realOpcode
public FrameHeaderDraft06(boolean fragmented,
int headerLength,
FrameBuilderDraft06.PayloadLengthType payloadLengthType,
long payloadLength,
FrameBuilderDraft06.Opcode opcode)
fragmented - the fragmentedheaderLength - the header lengthpayloadLengthType - the payload length typepayloadLength - the payload lengthopcode - the opcodepublic FrameHeaderDraft06(boolean fragmented,
int headerLength,
FrameBuilderDraft06.PayloadLengthType payloadLengthType,
long payloadLength,
FrameBuilderDraft06.Opcode opcode,
FrameBuilderDraft06.Opcode realOpcode)
fragmented - the fragmentedheaderLength - the header lengthpayloadLengthType - the payload length typepayloadLength - the payload lengthopcode - the opcoderealOpcode - the real opcodepublic long getFrameLength()
FrameHeadergetFrameLength in interface FrameHeaderpublic int getHeaderLength()
public long getContentsLength()
FrameHeadergetContentsLength in interface FrameHeaderpublic boolean isFragmented()
public boolean isContinuation()
public FrameBuilderDraft06.Opcode getOpcode()
public FrameBuilderDraft06.Opcode getRealOpcode()
public ByteBuffer toByteBuffer()
FrameHeadertoByteBuffer in interface FrameHeaderCopyright © 2021. All rights reserved.