The settings expose the parameters defined by the HTTP/2 specification, as well as extra settings for protocol extensions.
| Modifier and Type | Field and Description |
|---|---|
| public static final boolean | DEFAULT_ENABLE_PUSH
Default HTTP/2 spec value for |
| public static final Map | DEFAULT_EXTRA_SETTINGS
Default HTTP/2 spec value for |
| public static final long | DEFAULT_HEADER_TABLE_SIZE
Default HTTP/2 spec value for |
| public static final int | DEFAULT_INITIAL_WINDOW_SIZE
Default HTTP/2 spec value for |
| public static final long | DEFAULT_MAX_CONCURRENT_STREAMS
Default HTTP/2 spec value for |
| public static final int | DEFAULT_MAX_FRAME_SIZE
Default HTTP/2 spec value for |
| public static final int | DEFAULT_MAX_HEADER_LIST_SIZE
Default HTTP/2 spec value for |
| private Map | |
| private long | |
| private int | |
| private long | |
| private int | |
| private long | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | Http2Settings(JsonObject
the JSON json)
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
Create an settings from JSON |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public Long | Returns: the setting valuethe setting identifier id)Return a setting value according to its identifier. |
| public Map | |
| public long | |
| public int | |
| public long | |
| public int | |
| public long | |
| public int | |
| public boolean | |
| public Http2Settings | Returns: a reference to this, so the API can be used fluentlythe setting id id, long the setting value value)Set a setting |
| public Http2Settings | Returns: a reference to this, so the API can be used fluentlythe new extra settings settings)Set the extra setting used for extending HTTP/2 |
| public Http2Settings | Returns: a reference to this, so the API can be used fluentlythe new value headerTableSize)Set SETTINGS_HEADER_TABLE_SIZE HTTP/2 setting. |
| public Http2Settings | Returns: a reference to this, so the API can be used fluentlythe new value initialWindowSize)Set the SETTINGS_INITIAL_WINDOW_SIZE HTTP/2 setting |
| public Http2Settings | Returns: a reference to this, so the API can be used fluentlythe new value maxConcurrentStreams)Set the SETTINGS_MAX_CONCURRENT_STREAMS HTTP/2 setting |
| public Http2Settings | Returns: a reference to this, so the API can be used fluentlythe new value maxFrameSize)Set the SETTINGS_MAX_FRAME_SIZE HTTP/2 setting |
| public Http2Settings | Returns: a reference to this, so the API can be used fluentlythe new value maxHeaderListSize)Set the SETTINGS_MAX_HEADER_LIST_SIZE HTTP/2 setting |
| public Http2Settings | Returns: a reference to this, so the API can be used fluentlythe new value pushEnabled)Set the SETTINGS_ENABLE_PUSH HTTP/2 setting |
| public JsonObject | toJson()
References Deprecated
JsonObject is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public String |
| DEFAULT_ENABLE_PUSH | back to summary |
|---|---|
| public static final boolean DEFAULT_ENABLE_PUSH Default HTTP/2 spec value for | |
| DEFAULT_EXTRA_SETTINGS | back to summary |
|---|---|
| public static final Map<Integer, Long> DEFAULT_EXTRA_SETTINGS Default HTTP/2 spec value for | |
| DEFAULT_HEADER_TABLE_SIZE | back to summary |
|---|---|
| public static final long DEFAULT_HEADER_TABLE_SIZE Default HTTP/2 spec value for | |
| DEFAULT_INITIAL_WINDOW_SIZE | back to summary |
|---|---|
| public static final int DEFAULT_INITIAL_WINDOW_SIZE Default HTTP/2 spec value for | |
| DEFAULT_MAX_CONCURRENT_STREAMS | back to summary |
|---|---|
| public static final long DEFAULT_MAX_CONCURRENT_STREAMS Default HTTP/2 spec value for | |
| DEFAULT_MAX_FRAME_SIZE | back to summary |
|---|---|
| public static final int DEFAULT_MAX_FRAME_SIZE Default HTTP/2 spec value for | |
| DEFAULT_MAX_HEADER_LIST_SIZE | back to summary |
|---|---|
| public static final int DEFAULT_MAX_HEADER_LIST_SIZE Default HTTP/2 spec value for | |
| extraSettings | back to summary |
|---|---|
| private Map<Integer, Long> extraSettings | |
| headerTableSize | back to summary |
|---|---|
| private long headerTableSize | |
| initialWindowSize | back to summary |
|---|---|
| private int initialWindowSize | |
| maxConcurrentStreams | back to summary |
|---|---|
| private long maxConcurrentStreams | |
| maxFrameSize | back to summary |
|---|---|
| private int maxFrameSize | |
| maxHeaderListSize | back to summary |
|---|---|
| private long maxHeaderListSize | |
| pushEnabled | back to summary |
|---|---|
| private boolean pushEnabled | |
| Http2Settings | back to summary |
|---|---|
| public Http2Settings() Default constructor | |
| Http2Settings | back to summary |
|---|---|
| public Http2Settings(JsonObject json)
References Deprecated
See corresponding docs for further information. Create an settings from JSON
| |
| Http2Settings | back to summary |
|---|---|
| public Http2Settings(Http2Settings other) Copy constructor
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| get | back to summary |
|---|---|
| public Long get(int id) Return a setting value according to its identifier.
| |
| getExtraSettings | back to summary |
|---|---|
| public Map | |
| getHeaderTableSize | back to summary |
|---|---|
public long getHeaderTableSize()
| |
| getInitialWindowSize | back to summary |
|---|---|
public int getInitialWindowSize()
| |
| getMaxConcurrentStreams | back to summary |
|---|---|
public long getMaxConcurrentStreams()
| |
| getMaxFrameSize | back to summary |
|---|---|
public int getMaxFrameSize()
| |
| getMaxHeaderListSize | back to summary |
|---|---|
public long getMaxHeaderListSize()
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isPushEnabled | back to summary |
|---|---|
public boolean isPushEnabled()
| |
| set | back to summary |
|---|---|
| public Http2Settings set(int id, long value) Set a setting
| |
| setExtraSettings | back to summary |
|---|---|
| public Http2Settings setExtraSettings(Map<Integer, Long> settings) Set the extra setting used for extending HTTP/2
| |
| setHeaderTableSize | back to summary |
|---|---|
| public Http2Settings setHeaderTableSize(long headerTableSize) Set SETTINGS_HEADER_TABLE_SIZE HTTP/2 setting.
| |
| setInitialWindowSize | back to summary |
|---|---|
| public Http2Settings setInitialWindowSize(int initialWindowSize) Set the SETTINGS_INITIAL_WINDOW_SIZE HTTP/2 setting
| |
| setMaxConcurrentStreams | back to summary |
|---|---|
| public Http2Settings setMaxConcurrentStreams(long maxConcurrentStreams) Set the SETTINGS_MAX_CONCURRENT_STREAMS HTTP/2 setting
| |
| setMaxFrameSize | back to summary |
|---|---|
| public Http2Settings setMaxFrameSize(int maxFrameSize) Set the SETTINGS_MAX_FRAME_SIZE HTTP/2 setting
| |
| setMaxHeaderListSize | back to summary |
|---|---|
| public Http2Settings setMaxHeaderListSize(long maxHeaderListSize) Set the SETTINGS_MAX_HEADER_LIST_SIZE HTTP/2 setting
| |
| setPushEnabled | back to summary |
|---|---|
| public Http2Settings setPushEnabled(boolean pushEnabled) Set the SETTINGS_ENABLE_PUSH HTTP/2 setting
| |
| toJson | back to summary |
|---|---|
| public JsonObject toJson()
References Deprecated
See corresponding docs for further information. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |