Module io.netty5.codec.http
Class PongWebSocketFrame
- java.lang.Object
-
- io.netty5.buffer.api.BufferHolder<WebSocketFrame>
-
- io.netty5.handler.codec.http.websocketx.WebSocketFrame
-
- io.netty5.handler.codec.http.websocketx.PongWebSocketFrame
-
- All Implemented Interfaces:
Resource<WebSocketFrame>,AutoCloseable
public class PongWebSocketFrame extends WebSocketFrame
Web Socket frame containing binary data.
-
-
Constructor Summary
Constructors Constructor Description PongWebSocketFrame(boolean finalFragment, int rsv, Buffer binaryData)Creates a new pong frame with the specified binary dataPongWebSocketFrame(Buffer binaryData)Creates a new pong frame with the specified binary data.PongWebSocketFrame(Send<Buffer> binaryData)Creates a new pong frame with the specified binary data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected WebSocketFramereceive(Buffer buf)Called when a sentBufferHolderis received by the recipient.-
Methods inherited from class io.netty5.handler.codec.http.websocketx.WebSocketFrame
binaryData, isFinalFragment, rsv, toString
-
Methods inherited from class io.netty5.buffer.api.BufferHolder
close, equals, getBuffer, getBufferVolatile, hashCode, isAccessible, replaceBuffer, replaceBufferVolatile, send, touch
-
-
-
-
Constructor Detail
-
PongWebSocketFrame
public PongWebSocketFrame(Buffer binaryData)
Creates a new pong frame with the specified binary data.- Parameters:
binaryData- the content of the frame.
-
PongWebSocketFrame
public PongWebSocketFrame(Send<Buffer> 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, Buffer 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
-
receive
protected WebSocketFrame receive(Buffer buf)
Description copied from class:BufferHolderCalled when a sentBufferHolderis received by the recipient. TheBufferHoldershould return a new concrete instance, that wraps the givenBufferobject.- Specified by:
receivein classBufferHolder<WebSocketFrame>- Parameters:
buf- TheBufferthat is received by the recipient, and needs to be wrapped in a newBufferHolderinstance.- Returns:
- A new buffer holder instance, containing the given buffer.
-
-