public class PingWebSocketFrame extends WebSocketFrame
| Constructor and Description |
|---|
PingWebSocketFrame()
Creates 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.
|
| Modifier and Type | Method and Description |
|---|---|
PingWebSocketFrame |
copy() |
PingWebSocketFrame |
duplicate() |
PingWebSocketFrame |
replace(io.netty.buffer.ByteBuf content) |
PingWebSocketFrame |
retain() |
PingWebSocketFrame |
retain(int increment) |
PingWebSocketFrame |
retainedDuplicate() |
PingWebSocketFrame |
touch() |
PingWebSocketFrame |
touch(Object hint) |
isFinalFragment, rsv, toStringpublic PingWebSocketFrame()
public PingWebSocketFrame(io.netty.buffer.ByteBuf binaryData)
binaryData - the content of the frame.public PingWebSocketFrame(boolean finalFragment,
int rsv,
io.netty.buffer.ByteBuf binaryData)
finalFragment - flag indicating if this frame is the final fragmentrsv - reserved bits used for protocol extensionsbinaryData - the content of the frame.public PingWebSocketFrame copy()
copy in interface io.netty.buffer.ByteBufHoldercopy in class WebSocketFramepublic PingWebSocketFrame duplicate()
duplicate in interface io.netty.buffer.ByteBufHolderduplicate in class WebSocketFramepublic PingWebSocketFrame retainedDuplicate()
retainedDuplicate in interface io.netty.buffer.ByteBufHolderretainedDuplicate in class WebSocketFramepublic PingWebSocketFrame replace(io.netty.buffer.ByteBuf content)
replace in interface io.netty.buffer.ByteBufHolderreplace in class WebSocketFramepublic PingWebSocketFrame retain()
retain in interface io.netty.buffer.ByteBufHolderretain in interface io.netty.util.ReferenceCountedretain in class WebSocketFramepublic PingWebSocketFrame retain(int increment)
retain in interface io.netty.buffer.ByteBufHolderretain in interface io.netty.util.ReferenceCountedretain in class WebSocketFramepublic PingWebSocketFrame touch()
touch in interface io.netty.buffer.ByteBufHoldertouch in interface io.netty.util.ReferenceCountedtouch in class WebSocketFramepublic PingWebSocketFrame touch(Object hint)
touch in interface io.netty.buffer.ByteBufHoldertouch in interface io.netty.util.ReferenceCountedtouch in class WebSocketFrameCopyright © 2008–2023 The Netty Project. All rights reserved.