public final class Http2Settings extends CharObjectHashMap<Long>
CharObjectMap.PrimitiveEntry<V>DEFAULT_LOAD_FACTOR| Constructor and Description |
|---|
Http2Settings() |
Http2Settings(int initialCapacity) |
Http2Settings(int initialCapacity,
float loadFactor) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
connectProtocolEnabled()
Gets the
SETTINGS_ENABLE_CONNECT_PROTOCOL value. |
Http2Settings |
connectProtocolEnabled(boolean enabled)
Sets the
SETTINGS_ENABLE_CONNECT_PROTOCOL value. |
Http2Settings |
copyFrom(Http2Settings settings)
Clears and then copies the given settings into this object.
|
static Http2Settings |
defaultSettings() |
Integer |
getIntValue(char key)
A helper method that returns
Long.intValue() on the return of CharObjectHashMap.get(char), if present. |
Long |
headerTableSize()
Gets the
SETTINGS_HEADER_TABLE_SIZE value. |
Http2Settings |
headerTableSize(long value)
Sets the
SETTINGS_HEADER_TABLE_SIZE value. |
Integer |
initialWindowSize()
Gets the
SETTINGS_INITIAL_WINDOW_SIZE value. |
Http2Settings |
initialWindowSize(int value)
Sets the
SETTINGS_INITIAL_WINDOW_SIZE value. |
protected String |
keyToString(char key)
Helper method called by
CharObjectHashMap.toString() in order to convert a single map key into a string. |
Long |
maxConcurrentStreams()
Gets the
SETTINGS_MAX_CONCURRENT_STREAMS value. |
Http2Settings |
maxConcurrentStreams(long value)
Sets the
SETTINGS_MAX_CONCURRENT_STREAMS value. |
Integer |
maxFrameSize()
Gets the
SETTINGS_MAX_FRAME_SIZE value. |
Http2Settings |
maxFrameSize(int value)
Sets the
SETTINGS_MAX_FRAME_SIZE value. |
Long |
maxHeaderListSize()
Gets the
SETTINGS_MAX_HEADER_LIST_SIZE value. |
Http2Settings |
maxHeaderListSize(long value)
Sets the
SETTINGS_MAX_HEADER_LIST_SIZE value. |
Boolean |
pushEnabled()
Gets the
SETTINGS_ENABLE_PUSH value. |
Http2Settings |
pushEnabled(boolean enabled)
Sets the
SETTINGS_ENABLE_PUSH value. |
Long |
put(char key,
Long value)
Adds the given setting key/value pair.
|
clear, containsKey, containsKey, containsValue, entries, entrySet, equals, get, get, hashCode, isEmpty, keySet, put, putAll, remove, remove, size, toString, valuesclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Http2Settings()
public Http2Settings(int initialCapacity,
float loadFactor)
public Http2Settings(int initialCapacity)
public Long put(char key, Long value)
put in interface CharObjectMap<Long>put in class CharObjectHashMap<Long>key - the key of the entry.value - the value of the entry.null if there was no previous mapping.IllegalArgumentException - if verification for a standard HTTP/2 setting fails.public Long headerTableSize()
SETTINGS_HEADER_TABLE_SIZE value. If unavailable, returns null.public Http2Settings headerTableSize(long value)
SETTINGS_HEADER_TABLE_SIZE value.IllegalArgumentException - if verification of the setting fails.public Boolean pushEnabled()
SETTINGS_ENABLE_PUSH value. If unavailable, returns null.public Http2Settings pushEnabled(boolean enabled)
SETTINGS_ENABLE_PUSH value.public Long maxConcurrentStreams()
SETTINGS_MAX_CONCURRENT_STREAMS value. If unavailable, returns null.public Http2Settings maxConcurrentStreams(long value)
SETTINGS_MAX_CONCURRENT_STREAMS value.IllegalArgumentException - if verification of the setting fails.public Integer initialWindowSize()
SETTINGS_INITIAL_WINDOW_SIZE value. If unavailable, returns null.public Http2Settings initialWindowSize(int value)
SETTINGS_INITIAL_WINDOW_SIZE value.IllegalArgumentException - if verification of the setting fails.public Integer maxFrameSize()
SETTINGS_MAX_FRAME_SIZE value. If unavailable, returns null.public Http2Settings maxFrameSize(int value)
SETTINGS_MAX_FRAME_SIZE value.IllegalArgumentException - if verification of the setting fails.public Long maxHeaderListSize()
SETTINGS_MAX_HEADER_LIST_SIZE value. If unavailable, returns null.public Http2Settings maxHeaderListSize(long value)
SETTINGS_MAX_HEADER_LIST_SIZE value.IllegalArgumentException - if verification of the setting fails.public Boolean connectProtocolEnabled()
SETTINGS_ENABLE_CONNECT_PROTOCOL value. If unavailable, returns null.public Http2Settings connectProtocolEnabled(boolean enabled)
SETTINGS_ENABLE_CONNECT_PROTOCOL value.public Http2Settings copyFrom(Http2Settings settings)
public Integer getIntValue(char key)
Long.intValue() on the return of CharObjectHashMap.get(char), if present. Note that
if the range of the value exceeds Integer.MAX_VALUE, the CharObjectHashMap.get(char) method should
be used instead to avoid truncation of the value.protected String keyToString(char key)
CharObjectHashMapCharObjectHashMap.toString() in order to convert a single map key into a string.
This is protected to allow subclasses to override the appearance of a given key.keyToString in class CharObjectHashMap<Long>public static Http2Settings defaultSettings()
Copyright © 2008–2025 The Netty Project. All rights reserved.