public abstract class ControlFrame extends WebSocketFrame
Frame.Type| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_CONTROL_PAYLOAD
Maximum size of Control frame, per RFC 6455
|
| Constructor and Description |
|---|
ControlFrame(byte opcode) |
| Modifier and Type | Method and Description |
|---|---|
void |
assertValid() |
boolean |
equals(Object obj) |
ByteBuffer |
getPayload()
Get the payload ByteBuffer.
|
boolean |
isControlFrame() |
boolean |
isDataFrame() |
WebSocketFrame |
setPayload(ByteBuffer buf)
Set the data payload.
|
public static final int MAX_CONTROL_PAYLOAD
public void assertValid()
assertValid in class WebSocketFramepublic boolean equals(Object obj)
equals in class WebSocketFramepublic boolean isControlFrame()
isControlFrame in class WebSocketFramepublic boolean isDataFrame()
isDataFrame in class WebSocketFramepublic WebSocketFrame setPayload(ByteBuffer buf)
WebSocketFrameThe provided buffer will be used as is, no copying of bytes performed.
The provided buffer should be flipped and ready to READ from.
setPayload in class WebSocketFramebuf - the bytebuffer to setpublic ByteBuffer getPayload()
WebSocketFramegetPayload in interface FramegetPayload in class WebSocketFrameCopyright © 2010 - 2020 Adobe. All Rights Reserved