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
public class PingWebSocketFrame extends WebSocketFrame
Web Socket frame containing binary data.
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class io.netty.handler.codec.http.websocketx.WebSocketFrame
isFinalFragment, rsv, toString
-
-
-
-
Constructor Detail
-
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 Detail
-
copy
public PingWebSocketFrame copy()
- Specified by:
copy
in interfaceio.netty.buffer.ByteBufHolder
- Overrides:
copy
in classWebSocketFrame
-
duplicate
public PingWebSocketFrame duplicate()
- Specified by:
duplicate
in interfaceio.netty.buffer.ByteBufHolder
- Overrides:
duplicate
in classWebSocketFrame
-
retainedDuplicate
public PingWebSocketFrame retainedDuplicate()
- Specified by:
retainedDuplicate
in interfaceio.netty.buffer.ByteBufHolder
- Overrides:
retainedDuplicate
in classWebSocketFrame
-
replace
public PingWebSocketFrame replace(io.netty.buffer.ByteBuf content)
- Specified by:
replace
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
replace
in classWebSocketFrame
-
retain
public PingWebSocketFrame retain()
- Specified by:
retain
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
retain
in interfaceio.netty.util.ReferenceCounted
- Overrides:
retain
in classWebSocketFrame
-
retain
public PingWebSocketFrame retain(int increment)
- Specified by:
retain
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
retain
in interfaceio.netty.util.ReferenceCounted
- Overrides:
retain
in classWebSocketFrame
-
touch
public PingWebSocketFrame touch()
- Specified by:
touch
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
touch
in interfaceio.netty.util.ReferenceCounted
- Overrides:
touch
in classWebSocketFrame
-
touch
public PingWebSocketFrame touch(Object hint)
- Specified by:
touch
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
touch
in interfaceio.netty.util.ReferenceCounted
- Overrides:
touch
in classWebSocketFrame
-
-