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 Frame
Frame.Type -
Field Summary
Fields inherited from class WebSocketFrame
data, finRsvOp, mask, masked -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanvoidSet the data frame to continuation modeMethods inherited from class 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:
assertValidin classWebSocketFrame
-
isControlFrame
public boolean isControlFrame()- Specified by:
isControlFramein classWebSocketFrame
-
isDataFrame
public boolean isDataFrame()- Specified by:
isDataFramein classWebSocketFrame
-
setIsContinuation
public void setIsContinuation()Set the data frame to continuation mode
-