Class ControlFrame
- java.lang.Object
-
- org.eclipse.jetty.websocket.common.WebSocketFrame
-
- org.eclipse.jetty.websocket.common.frames.ControlFrame
-
- All Implemented Interfaces:
Frame
- Direct Known Subclasses:
CloseFrame
,PingFrame
,PongFrame
@Deprecated(since="2021-05-27") public abstract class ControlFrame extends WebSocketFrame
Deprecated.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.websocket.api.extensions.Frame
Frame.Type
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_CONTROL_PAYLOAD
Deprecated.Maximum size of Control frame, per RFC 6455
-
Constructor Summary
Constructors Constructor Description ControlFrame(byte opcode)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
assertValid()
Deprecated.boolean
equals(java.lang.Object obj)
Deprecated.java.nio.ByteBuffer
getPayload()
Deprecated.Get the payload ByteBuffer.boolean
isControlFrame()
Deprecated.boolean
isDataFrame()
Deprecated.WebSocketFrame
setPayload(java.nio.ByteBuffer buf)
Deprecated.Set the data payload.
-
-
-
Field Detail
-
MAX_CONTROL_PAYLOAD
public static final int MAX_CONTROL_PAYLOAD
Deprecated.Maximum size of Control frame, per RFC 6455- See Also:
- Constant Field Values
-
-
Method Detail
-
assertValid
public void assertValid()
Deprecated.- Specified by:
assertValid
in classWebSocketFrame
-
equals
public boolean equals(java.lang.Object obj)
Deprecated.- Overrides:
equals
in classWebSocketFrame
-
isControlFrame
public boolean isControlFrame()
Deprecated.- Specified by:
isControlFrame
in classWebSocketFrame
-
isDataFrame
public boolean isDataFrame()
Deprecated.- Specified by:
isDataFrame
in classWebSocketFrame
-
setPayload
public WebSocketFrame setPayload(java.nio.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
-
getPayload
public java.nio.ByteBuffer getPayload()
Deprecated.Description copied from class:WebSocketFrame
Get the payload ByteBuffer. possible null.- Specified by:
getPayload
in interfaceFrame
- Overrides:
getPayload
in classWebSocketFrame
-
-