public abstract class WebSocketFrame extends DefaultByteBufHolder
| Modifier and Type | Field and Description |
|---|---|
private boolean |
finalFragment
Flag to indicate if this frame is the final fragment in a message.
|
private int |
rsv
RSV1, RSV2, RSV3 used for extensions
|
| Modifier | Constructor and Description |
|---|---|
protected |
WebSocketFrame(boolean finalFragment,
int rsv,
ByteBuf binaryData) |
protected |
WebSocketFrame(ByteBuf binaryData) |
| Modifier and Type | Method and Description |
|---|---|
abstract WebSocketFrame |
copy()
Create a deep copy of this
ByteBufHolder. |
abstract WebSocketFrame |
duplicate()
Duplicate the
ByteBufHolder. |
boolean |
isFinalFragment()
Flag to indicate if this frame is the final fragment in a message.
|
WebSocketFrame |
retain()
Increases the reference count by
1. |
WebSocketFrame |
retain(int increment)
Increases the reference count by the specified
increment. |
int |
rsv()
Bits used for extensions to the standard.
|
java.lang.String |
toString() |
content, contentToString, equals, hashCode, refCnt, release, releaseprivate final boolean finalFragment
private final int rsv
protected WebSocketFrame(ByteBuf binaryData)
protected WebSocketFrame(boolean finalFragment,
int rsv,
ByteBuf binaryData)
public boolean isFinalFragment()
public int rsv()
public abstract WebSocketFrame copy()
ByteBufHolderByteBufHolder.copy in interface ByteBufHoldercopy in class DefaultByteBufHolderpublic abstract WebSocketFrame duplicate()
ByteBufHolderByteBufHolder. Be aware that this will not automatically call ByteBufHolder.retain().duplicate in interface ByteBufHolderduplicate in class DefaultByteBufHolderpublic java.lang.String toString()
toString in class DefaultByteBufHolderpublic WebSocketFrame retain()
ReferenceCounted1.retain in interface ByteBufHolderretain in interface ReferenceCountedretain in class DefaultByteBufHolderpublic WebSocketFrame retain(int increment)
ReferenceCountedincrement.retain in interface ByteBufHolderretain in interface ReferenceCountedretain in class DefaultByteBufHolder