Class PongWebSocketFrame
- java.lang.Object
-
- io.netty.buffer.DefaultByteBufHolder
-
- io.netty.handler.codec.http.websocketx.WebSocketFrame
-
- io.netty.handler.codec.http.websocketx.PongWebSocketFrame
-
- All Implemented Interfaces:
io.netty.buffer.ByteBufHolder
,io.netty.util.ReferenceCounted
public class PongWebSocketFrame extends WebSocketFrame
Web Socket frame containing binary data.
-
-
Constructor Summary
Constructors Constructor Description PongWebSocketFrame()
Creates a new empty pong frame.PongWebSocketFrame(boolean finalFragment, int rsv, io.netty.buffer.ByteBuf binaryData)
Creates a new pong frame with the specified binary dataPongWebSocketFrame(io.netty.buffer.ByteBuf binaryData)
Creates a new pong frame with the specified binary data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PongWebSocketFrame
copy()
PongWebSocketFrame
duplicate()
PongWebSocketFrame
replace(io.netty.buffer.ByteBuf content)
PongWebSocketFrame
retain()
PongWebSocketFrame
retain(int increment)
PongWebSocketFrame
retainedDuplicate()
PongWebSocketFrame
touch()
PongWebSocketFrame
touch(Object hint)
-
Methods inherited from class io.netty.handler.codec.http.websocketx.WebSocketFrame
isFinalFragment, rsv, toString
-
-
-
-
Constructor Detail
-
PongWebSocketFrame
public PongWebSocketFrame()
Creates a new empty pong frame.
-
PongWebSocketFrame
public PongWebSocketFrame(io.netty.buffer.ByteBuf binaryData)
Creates a new pong frame with the specified binary data.- Parameters:
binaryData
- the content of the frame.
-
PongWebSocketFrame
public PongWebSocketFrame(boolean finalFragment, int rsv, io.netty.buffer.ByteBuf binaryData)
Creates a new pong 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 PongWebSocketFrame copy()
- Specified by:
copy
in interfaceio.netty.buffer.ByteBufHolder
- Overrides:
copy
in classWebSocketFrame
-
duplicate
public PongWebSocketFrame duplicate()
- Specified by:
duplicate
in interfaceio.netty.buffer.ByteBufHolder
- Overrides:
duplicate
in classWebSocketFrame
-
retainedDuplicate
public PongWebSocketFrame retainedDuplicate()
- Specified by:
retainedDuplicate
in interfaceio.netty.buffer.ByteBufHolder
- Overrides:
retainedDuplicate
in classWebSocketFrame
-
replace
public PongWebSocketFrame replace(io.netty.buffer.ByteBuf content)
- Specified by:
replace
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
replace
in classWebSocketFrame
-
retain
public PongWebSocketFrame retain()
- Specified by:
retain
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
retain
in interfaceio.netty.util.ReferenceCounted
- Overrides:
retain
in classWebSocketFrame
-
retain
public PongWebSocketFrame 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 PongWebSocketFrame touch()
- Specified by:
touch
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
touch
in interfaceio.netty.util.ReferenceCounted
- Overrides:
touch
in classWebSocketFrame
-
touch
public PongWebSocketFrame touch(Object hint)
- Specified by:
touch
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
touch
in interfaceio.netty.util.ReferenceCounted
- Overrides:
touch
in classWebSocketFrame
-
-