public abstract class WebSocketFrame extends DefaultByteBufHolder
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.
|
String |
toString() |
content, contentToString, refCnt, release, release
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 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
Copyright © 2008–2016 The Netty Project. All rights reserved.