Module io.netty5.codec.http
Class PingWebSocketFrame
- java.lang.Object
-
- io.netty5.buffer.api.BufferHolder<WebSocketFrame>
-
- io.netty5.handler.codec.http.websocketx.WebSocketFrame
-
- io.netty5.handler.codec.http.websocketx.PingWebSocketFrame
-
- All Implemented Interfaces:
io.netty5.util.Resource<WebSocketFrame>
,AutoCloseable
public class PingWebSocketFrame extends WebSocketFrame
Web Socket frame containing binary data.
-
-
Constructor Summary
Constructors Constructor Description PingWebSocketFrame(boolean finalFragment, int rsv, io.netty5.buffer.api.Buffer binaryData)
Creates a new ping frame with the specified binary data.PingWebSocketFrame(io.netty5.buffer.api.Buffer binaryData)
Creates a new ping frame with the specified binary data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected WebSocketFrame
receive(io.netty5.buffer.api.Buffer buf)
-
Methods inherited from class io.netty5.handler.codec.http.websocketx.WebSocketFrame
binaryData, isFinalFragment, rsv, toString
-
-
-
-
Constructor Detail
-
PingWebSocketFrame
public PingWebSocketFrame(io.netty5.buffer.api.Buffer 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.netty5.buffer.api.Buffer 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
-
receive
protected WebSocketFrame receive(io.netty5.buffer.api.Buffer buf)
- Specified by:
receive
in classio.netty5.buffer.api.BufferHolder<WebSocketFrame>
-
-