public class DataFrame extends WebSocketFrame
Frame.Type
Constructor and Description |
---|
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 and Description |
---|---|
void |
assertValid() |
boolean |
isControlFrame() |
boolean |
isDataFrame() |
void |
setIsContinuation()
Set the data frame to continuation mode
|
copy, equals, getMask, getOpCode, getPayload, getPayloadAsUTF8, getPayloadLength, getType, hashCode, hasPayload, isFin, isLast, isMasked, isRsv1, isRsv2, isRsv3, reset, setFin, setMask, setMasked, setPayload, setRsv1, setRsv2, setRsv3, toString
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 WebSocketFrame
public boolean isControlFrame()
isControlFrame
in class WebSocketFrame
public boolean isDataFrame()
isDataFrame
in class WebSocketFrame
public void setIsContinuation()
Copyright © 2010 - 2020 Adobe. All Rights Reserved