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
@Deprecated(since="2021-05-27") public class DataFrame extends WebSocketFrame
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.A Data Frame
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.websocket.api.extensions.Frame
Frame.Type
-
-
Constructor Summary
Constructors Constructor Description DataFrame(Frame basedOn)
Deprecated.Construct new DataFrame based on headers of provided frame.DataFrame(Frame basedOn, boolean continuation)
Deprecated.Construct new DataFrame based on headers of provided frame, overriding for continuations if needed.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
assertValid()
Deprecated.boolean
isControlFrame()
Deprecated.boolean
isDataFrame()
Deprecated.void
setIsContinuation()
Deprecated.Set the data frame to continuation mode-
Methods inherited from class org.eclipse.jetty.websocket.common.WebSocketFrame
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
-
-
-
-
Constructor Detail
-
DataFrame
public DataFrame(Frame basedOn)
Deprecated.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
public DataFrame(Frame basedOn, boolean continuation)
Deprecated.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 Detail
-
assertValid
public void assertValid()
Deprecated.- Specified by:
assertValid
in classWebSocketFrame
-
isControlFrame
public boolean isControlFrame()
Deprecated.- Specified by:
isControlFrame
in classWebSocketFrame
-
isDataFrame
public boolean isDataFrame()
Deprecated.- Specified by:
isDataFrame
in classWebSocketFrame
-
setIsContinuation
public void setIsContinuation()
Deprecated.Set the data frame to continuation mode
-
-