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

public Class PingWebSocketFrame

extends WebSocketFrame
Class Inheritance
Imports
io.netty5.buffer.Buffer

Web Socket frame containing binary data.

Constructor Summary

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

Creates a new ping frame with the specified binary data.

public
PingWebSocketFrame(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 ping 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

PingWebSocketFrameback to summary
public PingWebSocketFrame(Buffer binaryData)

Creates a new ping frame with the specified binary data.

Parameters
binaryData:Buffer

the content of the frame.

PingWebSocketFrameback to summary
public PingWebSocketFrame(boolean finalFragment, int rsv, Buffer binaryData)

Creates a new ping 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.

PingWebSocketFrameback to summary
private PingWebSocketFrame(PingWebSocketFrame 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