FrameBinaryFrame, ContinuationFrame, TextFramepublic class DataFrame extends WebSocketFrame
Frame.Typedata, finRsvOp, mask, masked| Modifier | Constructor | Description |
|---|---|---|
protected |
DataFrame(byte opcode) |
|
|
DataFrame(Frame basedOn) |
Construct new DataFrame based on headers of provided frame.
|
|
DataFrame(Frame basedOn,
boolean continuation) |
Construct new DataFrame based on headers of provided frame, overriding for continuations if needed.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
assertValid() |
|
boolean |
isControlFrame() |
|
boolean |
isDataFrame() |
|
void |
setIsContinuation() |
Set the data frame to continuation mode
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopy, copyHeaders, copyHeaders, equals, getMask, getOpCode, getPayload, getPayloadAsUTF8, getPayloadLength, getType, hashCode, hasPayload, isFin, isLast, isMasked, isRsv1, isRsv2, isRsv3, reset, setFin, setMask, setMasked, setOpCode, setPayload, setRsv1, setRsv2, setRsv3, toStringprotected DataFrame(byte opcode)
public DataFrame(Frame basedOn)
Useful for when working in extensions and a new frame needs to be created.
basedOn - the frame this one is based onpublic DataFrame(Frame basedOn, boolean continuation)
Useful for when working in extensions and a new frame needs to be created.
basedOn - the frame this one is based oncontinuation - true if this is a continuation framepublic void assertValid()
assertValid in class WebSocketFramepublic boolean isControlFrame()
isControlFrame in class WebSocketFramepublic boolean isDataFrame()
isDataFrame in class WebSocketFramepublic void setIsContinuation()
Copyright © 1995–2018 Webtide. All rights reserved.