java.lang.Object
io.helidon.http.http2.Http2Settings
- All Implemented Interfaces:
Http2Frame<Http2Flag.SettingsFlags>
HTTP settings frame.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Http2Settings.Builder
builder()
Settings frame builder.static Http2Settings
create()
Create empty settings frame.static Http2Settings
create
(BufferData frame) Settings frame from frame data.Frame type enum.Frame types.boolean
hasValue
(Http2Setting<?> setting) Is there a value in these settings for the provided setting.name()
Frame name.<T> Optional
<T> presentValue
(Http2Setting<T> setting) Value of a setting if present in these settings.toFrameData
(Http2Settings settings, int streamId, Http2Flag.SettingsFlags flags) Not implemented in headers, data, as these may use continuations.toString()
<T> T
value
(Http2Setting<T> setting) Value of a setting.
-
Method Details
-
create
Create empty settings frame.- Returns:
- settings frame
-
builder
Settings frame builder.- Returns:
- new builder
-
create
Settings frame from frame data.- Parameters:
frame
- frame buffer- Returns:
- settings frame
-
toFrameData
public Http2FrameData toFrameData(Http2Settings settings, int streamId, Http2Flag.SettingsFlags flags) Description copied from interface:Http2Frame
Not implemented in headers, data, as these may use continuations.- Specified by:
toFrameData
in interfaceHttp2Frame<Http2Flag.SettingsFlags>
- Parameters:
settings
- settingsstreamId
- stream id of this frameflags
- to use- Returns:
- frame data
-
name
Description copied from interface:Http2Frame
Frame name.- Specified by:
name
in interfaceHttp2Frame<Http2Flag.SettingsFlags>
- Returns:
- frame type name
-
frameType
Description copied from interface:Http2Frame
Frame type enum.- Specified by:
frameType
in interfaceHttp2Frame<Http2Flag.SettingsFlags>
- Returns:
- type of this frame
-
frameTypes
Description copied from interface:Http2Frame
Frame types.- Specified by:
frameTypes
in interfaceHttp2Frame<Http2Flag.SettingsFlags>
- Returns:
- frame types
-
toString
-
value
Value of a setting. Either returns a value defined in these settings, or returns the default value of the setting.- Type Parameters:
T
- type of the setting- Parameters:
setting
- setting- Returns:
- value of the setting
-
presentValue
Value of a setting if present in these settings.- Type Parameters:
T
- type of setting- Parameters:
setting
- setting- Returns:
- setting value if present, empty otherwise
-
hasValue
Is there a value in these settings for the provided setting.- Parameters:
setting
- setting- Returns:
- whether the setting is present
-