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
|
data, finRsvOp, mask, masked
Constructor and Description |
---|
ControlFrame(byte opcode) |
Modifier and Type | Method and Description |
---|---|
void |
assertValid() |
boolean |
equals(Object obj) |
boolean |
isControlFrame() |
boolean |
isDataFrame() |
WebSocketFrame |
setPayload(ByteBuffer buf)
Set the data payload.
|
copy, copyHeaders, copyHeaders, getMask, getOpCode, getPayload, getPayloadAsUTF8, getPayloadLength, getType, hashCode, hasPayload, isFin, isLast, isMasked, isRsv1, isRsv2, isRsv3, reset, setFin, setMask, setMasked, setOpCode, setRsv1, setRsv2, setRsv3, toString
public static final int MAX_CONTROL_PAYLOAD
public void assertValid()
assertValid
in class WebSocketFrame
public boolean equals(Object obj)
equals
in class WebSocketFrame
public boolean isControlFrame()
isControlFrame
in class WebSocketFrame
public boolean isDataFrame()
isDataFrame
in class WebSocketFrame
public WebSocketFrame setPayload(ByteBuffer buf)
WebSocketFrame
The 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 WebSocketFrame
buf
- the bytebuffer to setCopyright © 1995-2015 Webtide. All Rights Reserved.