Class BinaryFrame
- java.lang.Object
-
- org.eclipse.jetty.websocket.common.WebSocketFrame
-
- org.eclipse.jetty.websocket.common.frames.DataFrame
-
- org.eclipse.jetty.websocket.common.frames.BinaryFrame
-
- All Implemented Interfaces:
Frame
@Deprecated(since="2021-05-27") public class BinaryFrame extends DataFrame
Deprecated.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.websocket.api.extensions.Frame
Frame.Type
-
-
Constructor Summary
Constructors Constructor Description BinaryFrame()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Frame.Type
getType()
Deprecated.BinaryFrame
setPayload(byte[] buf)
Deprecated.BinaryFrame
setPayload(String payload)
Deprecated.BinaryFrame
setPayload(ByteBuffer buf)
Deprecated.Set the data payload.-
Methods inherited from class org.eclipse.jetty.websocket.common.frames.DataFrame
assertValid, isControlFrame, isDataFrame, setIsContinuation
-
Methods inherited from class org.eclipse.jetty.websocket.common.WebSocketFrame
copy, equals, getMask, getOpCode, getPayload, getPayloadAsUTF8, getPayloadLength, hashCode, hasPayload, isFin, isLast, isMasked, isRsv1, isRsv2, isRsv3, reset, setFin, setMask, setMasked, setRsv1, setRsv2, setRsv3, toString
-
-
-
-
Method Detail
-
setPayload
public BinaryFrame setPayload(ByteBuffer buf)
Deprecated.Description copied from class:WebSocketFrame
Set the data payload.The provided buffer will be used as is, no copying of bytes performed.
The provided buffer should be flipped and ready to READ from.
- Overrides:
setPayload
in classWebSocketFrame
- Parameters:
buf
- the bytebuffer to set- Returns:
- the frame itself
-
setPayload
public BinaryFrame setPayload(byte[] buf)
Deprecated.
-
setPayload
public BinaryFrame setPayload(String payload)
Deprecated.
-
getType
public Frame.Type getType()
Deprecated.- Specified by:
getType
in interfaceFrame
- Overrides:
getType
in classWebSocketFrame
-
-