Class PingWebSocketFrame
java.lang.Object
io.netty.buffer.DefaultByteBufHolder
io.netty.handler.codec.http.websocketx.WebSocketFrame
io.netty.handler.codec.http.websocketx.PingWebSocketFrame
- All Implemented Interfaces:
io.netty.buffer.ByteBufHolder,io.netty.util.ReferenceCounted
Web Socket frame containing binary data.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new empty ping frame.PingWebSocketFrame(boolean finalFragment, int rsv, io.netty.buffer.ByteBuf binaryData) Creates a new ping frame with the specified binary data.PingWebSocketFrame(io.netty.buffer.ByteBuf binaryData) Creates a new ping frame with the specified binary data. -
Method Summary
Methods inherited from class io.netty.handler.codec.http.websocketx.WebSocketFrame
isFinalFragment, rsv, toStringMethods inherited from class io.netty.buffer.DefaultByteBufHolder
content, contentToString, equals, hashCode, refCnt, release, release
-
Constructor Details
-
PingWebSocketFrame
public PingWebSocketFrame()Creates a new empty ping frame. -
PingWebSocketFrame
public PingWebSocketFrame(io.netty.buffer.ByteBuf binaryData) Creates a new ping frame with the specified binary data.- Parameters:
binaryData- the content of the frame.
-
PingWebSocketFrame
public PingWebSocketFrame(boolean finalFragment, int rsv, io.netty.buffer.ByteBuf binaryData) Creates a new ping frame with the specified binary data.- Parameters:
finalFragment- flag indicating if this frame is the final fragmentrsv- reserved bits used for protocol extensionsbinaryData- the content of the frame.
-
-
Method Details
-
copy
- Specified by:
copyin interfaceio.netty.buffer.ByteBufHolder- Overrides:
copyin classWebSocketFrame
-
duplicate
- Specified by:
duplicatein interfaceio.netty.buffer.ByteBufHolder- Overrides:
duplicatein classWebSocketFrame
-
retainedDuplicate
- Specified by:
retainedDuplicatein interfaceio.netty.buffer.ByteBufHolder- Overrides:
retainedDuplicatein classWebSocketFrame
-
replace
- Specified by:
replacein interfaceio.netty.buffer.ByteBufHolder- Specified by:
replacein classWebSocketFrame
-
retain
- Specified by:
retainin interfaceio.netty.buffer.ByteBufHolder- Specified by:
retainin interfaceio.netty.util.ReferenceCounted- Overrides:
retainin classWebSocketFrame
-
retain
- Specified by:
retainin interfaceio.netty.buffer.ByteBufHolder- Specified by:
retainin interfaceio.netty.util.ReferenceCounted- Overrides:
retainin classWebSocketFrame
-
touch
- Specified by:
touchin interfaceio.netty.buffer.ByteBufHolder- Specified by:
touchin interfaceio.netty.util.ReferenceCounted- Overrides:
touchin classWebSocketFrame
-
touch
- Specified by:
touchin interfaceio.netty.buffer.ByteBufHolder- Specified by:
touchin interfaceio.netty.util.ReferenceCounted- Overrides:
touchin classWebSocketFrame
-