Class DataFrame
java.lang.Object
org.eclipse.jetty.websocket.common.WebSocketFrame
org.eclipse.jetty.websocket.common.frames.DataFrame
- All Implemented Interfaces:
Frame
- Direct Known Subclasses:
BinaryFrame
,ContinuationFrame
,TextFrame
A Data Frame
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.websocket.api.extensions.Frame
Frame.Type
-
Field Summary
Fields inherited from class org.eclipse.jetty.websocket.common.WebSocketFrame
data, finRsvOp, mask, masked
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
void
Set the data frame to continuation modeMethods inherited from class org.eclipse.jetty.websocket.common.WebSocketFrame
copy, 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, toString
-
Constructor Details
-
DataFrame
protected DataFrame(byte opcode) -
DataFrame
Construct new DataFrame based on headers of provided frame.Useful for when working in extensions and a new frame needs to be created.
- Parameters:
basedOn
- the frame this one is based on
-
DataFrame
Construct new DataFrame based on headers of provided frame, overriding for continuations if needed.Useful for when working in extensions and a new frame needs to be created.
- Parameters:
basedOn
- the frame this one is based oncontinuation
- true if this is a continuation frame
-
-
Method Details
-
assertValid
public void assertValid()- Specified by:
assertValid
in classWebSocketFrame
-
isControlFrame
public boolean isControlFrame()- Specified by:
isControlFrame
in classWebSocketFrame
-
isDataFrame
public boolean isDataFrame()- Specified by:
isDataFrame
in classWebSocketFrame
-
setIsContinuation
public void setIsContinuation()Set the data frame to continuation mode
-