Class Http2Settings
java.lang.Object
io.vertx.core.http.HttpSettings
io.vertx.core.http.Http2Settings
HTTP2 settings, the settings is initialized with the default HTTP/2 values.
The settings expose the parameters defined by the HTTP/2 specification, as well as extra settings for protocol extensions.
- Author:
- Julien Viet
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanDefault HTTP/2 spec value forisPushEnabled():trueDefault HTTP/2 spec value forgetExtraSettings():nullstatic final longDefault HTTP/2 spec value forgetHeaderTableSize():4096static final intDefault HTTP/2 spec value forgetInitialWindowSize():65535static final longDefault HTTP/2 spec value forgetMaxConcurrentStreams():0xFFFFFFFFLstatic final intDefault HTTP/2 spec value forgetMaxFrameSize():16384static final intDefault HTTP/2 spec value forgetMaxHeaderListSize():8192static final HttpSetting<Boolean> HTTP/2HEADER_TABLE_SIZEsettingstatic final HttpSetting<Long> HTTP/2HEADER_TABLE_SIZEsettingstatic final HttpSetting<Integer> HTTP/2INITIAL_WINDOW_SIZEsettingstatic final HttpSetting<Long> HTTP/2MAX_CONCURRENT_STREAMSsettingstatic final HttpSetting<Integer> HTTP/2MAX_FRAME_SIZEsettingstatic final HttpSetting<Long> HTTP/2MAX_HEADER_LIST_SIZEsetting -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorHttp2Settings(Http2Settings other) Copy constructorHttp2Settings(JsonObject json) Create an settings from JSON -
Method Summary
Modifier and TypeMethodDescriptioncopy()booleanget(int id) Return a setting value according to its identifier.longintlongintlonginthashCode()booleanset(int id, long value) Set a settingvaluefor a given settingid.<T> Http2Settingsset(HttpSetting<T> setting, T value) Set thesettingvalue with<T>.setExtraSettings(Map<Integer, Long> settings) Set the extra setting used for extending HTTP/2setHeaderTableSize(long headerTableSize) Set SETTINGS_HEADER_TABLE_SIZE HTTP/2 setting.setInitialWindowSize(int initialWindowSize) Set the SETTINGS_INITIAL_WINDOW_SIZE HTTP/2 settingsetLong(HttpSetting<?> setting, long value) Set thesettingvalue withlong.setMaxConcurrentStreams(long maxConcurrentStreams) Set the SETTINGS_MAX_CONCURRENT_STREAMS HTTP/2 settingsetMaxFrameSize(int maxFrameSize) Set the SETTINGS_MAX_FRAME_SIZE HTTP/2 settingsetMaxHeaderListSize(long maxHeaderListSize) Set the SETTINGS_MAX_HEADER_LIST_SIZE HTTP/2 settingsetPushEnabled(boolean pushEnabled) Set the SETTINGS_ENABLE_PUSH HTTP/2 settingtoJson()toString()Methods inherited from class HttpSettings
get, getLong, getLongOrDefault, getOrDefault
-
Field Details
-
DEFAULT_HEADER_TABLE_SIZE
public static final long DEFAULT_HEADER_TABLE_SIZEDefault HTTP/2 spec value forgetHeaderTableSize():4096- See Also:
-
DEFAULT_ENABLE_PUSH
public static final boolean DEFAULT_ENABLE_PUSHDefault HTTP/2 spec value forisPushEnabled():true- See Also:
-
DEFAULT_MAX_CONCURRENT_STREAMS
public static final long DEFAULT_MAX_CONCURRENT_STREAMSDefault HTTP/2 spec value forgetMaxConcurrentStreams():0xFFFFFFFFL- See Also:
-
DEFAULT_INITIAL_WINDOW_SIZE
public static final int DEFAULT_INITIAL_WINDOW_SIZEDefault HTTP/2 spec value forgetInitialWindowSize():65535- See Also:
-
DEFAULT_MAX_FRAME_SIZE
public static final int DEFAULT_MAX_FRAME_SIZEDefault HTTP/2 spec value forgetMaxFrameSize():16384- See Also:
-
DEFAULT_MAX_HEADER_LIST_SIZE
public static final int DEFAULT_MAX_HEADER_LIST_SIZEDefault HTTP/2 spec value forgetMaxHeaderListSize():8192- See Also:
-
DEFAULT_EXTRA_SETTINGS
Default HTTP/2 spec value forgetExtraSettings():null -
HEADER_TABLE_SIZE
HTTP/2HEADER_TABLE_SIZEsetting -
ENABLE_PUSH
HTTP/2HEADER_TABLE_SIZEsetting -
MAX_CONCURRENT_STREAMS
HTTP/2MAX_CONCURRENT_STREAMSsetting -
INITIAL_WINDOW_SIZE
HTTP/2INITIAL_WINDOW_SIZEsetting -
MAX_FRAME_SIZE
HTTP/2MAX_FRAME_SIZEsetting -
MAX_HEADER_LIST_SIZE
HTTP/2MAX_HEADER_LIST_SIZEsetting
-
-
Constructor Details
-
Http2Settings
public Http2Settings()Default constructor -
Http2Settings
-
Http2Settings
-
-
Method Details
-
copy
- Specified by:
copyin classHttpSettings
-
getHeaderTableSize
public long getHeaderTableSize()- Returns:
- the SETTINGS_HEADER_TABLE_SIZE HTTP/2 setting
-
setHeaderTableSize
Set SETTINGS_HEADER_TABLE_SIZE HTTP/2 setting.- Parameters:
headerTableSize- the new value- Returns:
- a reference to this, so the API can be used fluently
-
isPushEnabled
public boolean isPushEnabled()- Returns:
- the SETTINGS_ENABLE_PUSH HTTP/2 setting
-
setPushEnabled
Set the SETTINGS_ENABLE_PUSH HTTP/2 setting- Parameters:
pushEnabled- the new value- Returns:
- a reference to this, so the API can be used fluently
-
getMaxConcurrentStreams
public long getMaxConcurrentStreams()- Returns:
- the SETTINGS_MAX_CONCURRENT_STREAMS HTTP/2 setting
-
setMaxConcurrentStreams
Set the SETTINGS_MAX_CONCURRENT_STREAMS HTTP/2 setting- Parameters:
maxConcurrentStreams- the new value- Returns:
- a reference to this, so the API can be used fluently
-
getInitialWindowSize
public int getInitialWindowSize()- Returns:
- the SETTINGS_INITIAL_WINDOW_SIZE HTTP/2 setting
-
setInitialWindowSize
Set the SETTINGS_INITIAL_WINDOW_SIZE HTTP/2 setting- Parameters:
initialWindowSize- the new value- Returns:
- a reference to this, so the API can be used fluently
-
getMaxFrameSize
public int getMaxFrameSize()- Returns:
- the SETTINGS_MAX_FRAME_SIZE HTTP/2 setting
-
setMaxFrameSize
Set the SETTINGS_MAX_FRAME_SIZE HTTP/2 setting- Parameters:
maxFrameSize- the new value- Returns:
- a reference to this, so the API can be used fluently
-
getMaxHeaderListSize
public long getMaxHeaderListSize()- Returns:
- the SETTINGS_MAX_HEADER_LIST_SIZE HTTP/2 setting
-
setMaxHeaderListSize
Set the SETTINGS_MAX_HEADER_LIST_SIZE HTTP/2 setting- Parameters:
maxHeaderListSize- the new value- Returns:
- a reference to this, so the API can be used fluently
-
getExtraSettings
-
setExtraSettings
Set the extra setting used for extending HTTP/2- Parameters:
settings- the new extra settings- Returns:
- a reference to this, so the API can be used fluently
-
get
Return a setting value according to its identifier.- Parameters:
id- the setting identifier- Returns:
- the setting value
-
set
Set a settingvaluefor a given settingid.- Parameters:
id- the setting idvalue- the setting value- Returns:
- a reference to this, so the API can be used fluently
-
set
Description copied from class:HttpSettingsSet thesettingvalue with<T>.- Overrides:
setin classHttpSettings- Parameters:
setting- the settingvalue- the java value- Returns:
- a reference to this, so the API can be used fluently
-
setLong
Description copied from class:HttpSettingsSet thesettingvalue withlong.- Overrides:
setLongin classHttpSettings- Parameters:
setting- the settingvalue- the raw value- Returns:
- a reference to this, so the API can be used fluently
-
equals
-
hashCode
-
toString
-
toJson
-