java.lang.Object
io.helidon.http.http2.Http2Ping
- All Implemented Interfaces:
Http2Frame<Http2Flag.PingFlags>
Ping frame.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Http2Ping
create()
Create ping.static Http2Ping
create
(BufferData data) Create ping from buffer.data()
Underlying buffer.Frame type enum.Frame types.byte[]
getBytes()
Get bytes of this frame.name()
Frame name.Representation of ping data.toFrameData
(Http2Settings settings, int streamId, Http2Flag.PingFlags flags) Not implemented in headers, data, as these may use continuations.
-
Method Details
-
create
Create ping from buffer.- Parameters:
data
- frame buffer- Returns:
- ping frame
-
create
Create ping.- Returns:
- ping frame
-
toFrameData
Description copied from interface:Http2Frame
Not implemented in headers, data, as these may use continuations.- Specified by:
toFrameData
in interfaceHttp2Frame<Http2Flag.PingFlags>
- Parameters:
settings
- settingsstreamId
- stream id of this frameflags
- to use- Returns:
- frame data
-
toFrameData
Representation of ping data.- Returns:
- frame data crated from this ping
-
name
Description copied from interface:Http2Frame
Frame name.- Specified by:
name
in interfaceHttp2Frame<Http2Flag.PingFlags>
- Returns:
- frame type name
-
frameType
Description copied from interface:Http2Frame
Frame type enum.- Specified by:
frameType
in interfaceHttp2Frame<Http2Flag.PingFlags>
- Returns:
- type of this frame
-
frameTypes
Description copied from interface:Http2Frame
Frame types.- Specified by:
frameTypes
in interfaceHttp2Frame<Http2Flag.PingFlags>
- Returns:
- frame types
-
getBytes
public byte[] getBytes()Get bytes of this frame.- Returns:
- frame bytes
-
data
Underlying buffer.- Returns:
- frame data
-