Class HttpSettings
java.lang.Object
io.vertx.core.http.HttpSettings
- Direct Known Subclasses:
Http2Settings, Http3Settings
Base container for HTTP settings.
- Author:
- Julien Viet
-
Method Summary
Modifier and TypeMethodDescriptionabstract HttpSettingscopy()<T> Tget(HttpSetting<T> setting) Get thesettingvalue as<T>.getLong(HttpSetting<?> setting) Get thesettingvalue as aLong.longgetLongOrDefault(HttpSetting<?> setting) Get thesettingvalue aslong.<T> TgetOrDefault(HttpSetting<T> setting) Get thesettingvalue as<T>.<T> HttpSettingsset(HttpSetting<T> setting, T value) Set thesettingvalue with<T>.setLong(HttpSetting<?> setting, long value) Set thesettingvalue withlong.
-
Method Details
-
copy
-
set
Set thesettingvalue with<T>.- Parameters:
setting- the settingvalue- the java value- Returns:
- a reference to this, so the API can be used fluently
-
get
Get thesettingvalue as<T>.- Parameters:
setting- the setting- Returns:
- the value or
nullif the value is not present
-
getOrDefault
Get thesettingvalue as<T>.- Parameters:
setting- the setting- Returns:
- the value, which is never
nullsince the setting default value will be returned instead
-
setLong
Set thesettingvalue withlong.- Parameters:
setting- the settingvalue- the raw value- Returns:
- a reference to this, so the API can be used fluently
-
getLongOrDefault
Get thesettingvalue aslong.- Parameters:
setting- the setting- Returns:
- the raw value, it could be the default value
-
getLong
Get thesettingvalue as aLong.- Parameters:
setting- the setting- Returns:
- the raw value or
nullwhen the value is not set
-