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 intMAX_CONTROL_PAYLOADDeprecated.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 voidassertValid()Deprecated.booleanequals(java.lang.Object obj)Deprecated.java.nio.ByteBuffergetPayload()Deprecated.Get the payload ByteBuffer.booleanisControlFrame()Deprecated.booleanisDataFrame()Deprecated.WebSocketFramesetPayload(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:
assertValidin classWebSocketFrame
-
equals
public boolean equals(java.lang.Object obj)
Deprecated.- Overrides:
equalsin classWebSocketFrame
-
isControlFrame
public boolean isControlFrame()
Deprecated.- Specified by:
isControlFramein classWebSocketFrame
-
isDataFrame
public boolean isDataFrame()
Deprecated.- Specified by:
isDataFramein classWebSocketFrame
-
setPayload
public WebSocketFrame setPayload(java.nio.ByteBuffer buf)
Deprecated.Description copied from class:WebSocketFrameSet 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:
setPayloadin classWebSocketFrame- Parameters:
buf- the bytebuffer to set- Returns:
- the frame itself
-
getPayload
public java.nio.ByteBuffer getPayload()
Deprecated.Description copied from class:WebSocketFrameGet the payload ByteBuffer. possible null.- Specified by:
getPayloadin interfaceFrame- Overrides:
getPayloadin classWebSocketFrame
-
-