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, release
private 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()
ByteBufHolder
ByteBufHolder
.copy
in interface ByteBufHolder
copy
in class DefaultByteBufHolder
public abstract WebSocketFrame duplicate()
ByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.duplicate
in interface ByteBufHolder
duplicate
in class DefaultByteBufHolder
public java.lang.String toString()
toString
in class DefaultByteBufHolder
public WebSocketFrame retain()
ReferenceCounted
1
.retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
retain
in class DefaultByteBufHolder
public WebSocketFrame retain(int increment)
ReferenceCounted
increment
.retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
retain
in class DefaultByteBufHolder