@UnstableApi public final class Http2Settings extends io.netty.util.collection.CharObjectHashMap<Long>
Constructor and Description |
---|
Http2Settings() |
Http2Settings(int initialCapacity) |
Http2Settings(int initialCapacity,
float loadFactor) |
Modifier and Type | Method and Description |
---|---|
Http2Settings |
copyFrom(Http2Settings settings)
Clears and then copies the given settings into this object.
|
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(int 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) |
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. |
Integer |
maxHeaderListSize()
Gets the
SETTINGS_MAX_HEADER_LIST_SIZE value. |
Http2Settings |
maxHeaderListSize(int 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.
|
public Http2Settings()
public Http2Settings(int initialCapacity, float loadFactor)
public Http2Settings(int initialCapacity)
public Long put(char key, Long value)
put
in interface io.netty.util.collection.CharObjectMap<Long>
put
in class io.netty.util.collection.CharObjectHashMap<Long>
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(int 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 Integer maxHeaderListSize()
SETTINGS_MAX_HEADER_LIST_SIZE
value. If unavailable, returns null
.public Http2Settings maxHeaderListSize(int value)
SETTINGS_MAX_HEADER_LIST_SIZE
value.IllegalArgumentException
- if verification of the setting fails.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.Copyright © 2008–2016 The Netty Project. All rights reserved.