public class PingWebSocketFrame extends WebSocketFrame
构造器和说明 |
---|
PingWebSocketFrame()
Creates a new empty ping frame.
|
PingWebSocketFrame(boolean finalFragment,
int rsv,
ChannelBuffer binaryData)
Creates a new ping frame with the specified binary data
|
PingWebSocketFrame(ChannelBuffer binaryData)
Creates a new ping frame with the specified binary data.
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
toString() |
getBinaryData, getRsv, isFinalFragment, setBinaryData, setFinalFragment, setRsv
public PingWebSocketFrame()
public PingWebSocketFrame(ChannelBuffer binaryData)
binaryData
- the content of the frame.public PingWebSocketFrame(boolean finalFragment, int rsv, ChannelBuffer binaryData)
finalFragment
- flag indicating if this frame is the final fragmentrsv
- reserved bits used for protocol extensionsbinaryData
- the content of the frame.