public abstract class FrameDraft06 extends Frame
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-------+-+-------------+-------------------------------+
|F|R|R|R| opcode|R| Payload len | Extended payload length |
|I|S|S|S| (4) |S| (7) | (16/63) |
|N|V|V|V| |V| | (if payload len==126/127) |
| |1|2|3| |4| | |
+-+-+-+-+-------+-+-------------+ - - - - - - - - - - - - - - - +
| Extended payload length continued, if payload len == 127 |
+ - - - - - - - - - - - - - - - +-------------------------------+
| | Extension data |
+-------------------------------+ - - - - - - - - - - - - - - - +
: :
+---------------------------------------------------------------+
: Application data :
+---------------------------------------------------------------+
payload length = extention data length + application data length.
the extention data length may be zero.
Support WebSocket Draft06 specification.| Modifier | Constructor and Description |
|---|---|
protected |
FrameDraft06()
Instantiates a new frame draft06.
|
protected |
FrameDraft06(FrameHeader header,
byte[] bodyData)
Instantiates a new frame draft06.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isContinuationFrame()
Checks if is continuation frame.
|
ByteBuffer |
toByteBuffer()
convert frame to byte buffer.
|
getContents, getContentsLength, getHeader, readContents, readContents, setContents, setHeaderprotected FrameDraft06()
protected FrameDraft06(FrameHeader header, byte[] bodyData)
header - the headerbodyData - the contents datapublic ByteBuffer toByteBuffer()
FrametoByteBuffer in class Framepublic boolean isContinuationFrame()
Copyright © 2021. All rights reserved.