Top Description Constructors Methods
io.netty5.handler.codec.http.websocketx

public Class PongWebSocketFrame

extends WebSocketFrame
Class Inheritance
Imports
io.netty5.buffer.Buffer, io.netty5.util.Send

Web Socket frame containing binary data.

Constructor Summary

AccessConstructor and Description
public
PongWebSocketFrame(Buffer
the content of the frame.
binaryData
)

Creates a new pong frame with the specified binary data.

public
PongWebSocketFrame(Send<Buffer>
the content of the frame.
binaryData
)

Creates a new pong frame with the specified binary data.

public
PongWebSocketFrame(boolean
flag indicating if this frame is the final fragment
finalFragment
,
int
reserved bits used for protocol extensions
rsv
,
Buffer
the content of the frame.
binaryData
)

Creates a new pong frame with the specified binary data

private

Method Summary

Modifier and TypeMethod and Description
protected WebSocketFrame
receive(Buffer
The Buffer that is received by the recipient, and needs to be wrapped in a new BufferHolder instance.
buf
)

Implements abstract io.netty5.buffer.BufferHolder.receive.

Called when a sent BufferHolder is received by the recipient.
Inherited from io.netty5.handler.codec.http.websocketx.WebSocketFrame:
binaryDataisFinalFragmentrsvtoString

Constructor Detail

PongWebSocketFrameback to summary
public PongWebSocketFrame(Buffer binaryData)

Creates a new pong frame with the specified binary data.

Parameters
binaryData:Buffer

the content of the frame.

PongWebSocketFrameback to summary
public PongWebSocketFrame(Send<Buffer> binaryData)

Creates a new pong frame with the specified binary data.

Parameters
binaryData:Send<Buffer>

the content of the frame.

PongWebSocketFrameback to summary
public PongWebSocketFrame(boolean finalFragment, int rsv, Buffer binaryData)

Creates a new pong frame with the specified binary data

Parameters
finalFragment:boolean

flag indicating if this frame is the final fragment

rsv:int

reserved bits used for protocol extensions

binaryData:Buffer

the content of the frame.

PongWebSocketFrameback to summary
private PongWebSocketFrame(PongWebSocketFrame copyFrom, Buffer data)

Method Detail

receiveback to summary
protected WebSocketFrame receive(Buffer buf)

Implements abstract io.netty5.buffer.BufferHolder.receive.

Doc from io.netty5.buffer.BufferHolder.receive.

Called when a sent BufferHolder is received by the recipient. The BufferHolder should return a new concrete instance, that wraps the given Buffer object.

Parameters
buf:Buffer

The Buffer that is received by the recipient, and needs to be wrapped in a new BufferHolder instance.

Returns:WebSocketFrame

A new buffer holder instance, containing the given buffer.

Annotations
@Override