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 |
retain() |
PingWebSocketFrame |
retain(int increment) |
isFinalFragment, rsv, toString
public 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.ByteBufHolder
copy
in class WebSocketFrame
public PingWebSocketFrame duplicate()
duplicate
in interface io.netty.buffer.ByteBufHolder
duplicate
in class WebSocketFrame
public PingWebSocketFrame retain()
retain
in interface io.netty.buffer.ByteBufHolder
retain
in interface io.netty.util.ReferenceCounted
retain
in class WebSocketFrame
public PingWebSocketFrame retain(int increment)
retain
in interface io.netty.buffer.ByteBufHolder
retain
in interface io.netty.util.ReferenceCounted
retain
in class WebSocketFrame
Copyright © 2008–2013 The Netty Project. All rights reserved.