MultiMap implementation that extends Netty HttpHeaders
for convenience.
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| pack-priv static final int | |
| private final HeadersMultiMap. | |
| private final HeadersMultiMap. | |
| pack-priv static final BiConsumer | |
| private final BiConsumer |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public HeadersMultiMap | add(CharSequence name, CharSequence value)
Implements io. Like |
| public HeadersMultiMap | add(CharSequence
The name of the header being added name, Object The value of the header being added value)Overrides io. Adds a new header with the specified name and value. |
| public HttpHeaders | |
| public HeadersMultiMap | add(String
The name name, String The value being added strVal)Implements io. Adds a new value with the specified name and value. |
| public HeadersMultiMap | add(CharSequence
The name of the headers being set name, Iterable<T> The values of the headers being set values)Overrides io. Implements io. Like |
| public HeadersMultiMap | add(String
The name being set name, Iterable<T> The values values)Implements abstract io. Implements io. Adds a new values under the specified name |
| private void | |
| public MultiMap | addAll(MultiMap headers)
Implements io. Adds all the entries from another MultiMap to this one |
| public MultiMap | addAll(Map<String, String> map)
Implements io. Adds all the entries from a Map to this |
| private MultiMap | |
| public HttpHeaders | addInt(CharSequence
The name to modify name, int The value value)Implements abstract io. Add the |
| public HttpHeaders | addShort(CharSequence
The name to modify name, short The value value)Implements abstract io. Add the |
| public HeadersMultiMap | clear()
Implements abstract io. Implements io. Removes all |
| public boolean | contains(CharSequence
the name of the header to find name, CharSequence the value of the header to find value, boolean true then a case insensitive compare is run to compare values.
otherwise a case sensitive compare is run to compare values.Overrides io. Overrides default io. Like |
| public boolean | contains(String
the name to search for name, String the value to search for value, boolean ignoreCase)Overrides io. Overrides default io. Check if there is a header with the specified |
| public boolean | contains(CharSequence
The name of the header to search for name)Overrides io. Implements io. Like |
| public boolean | contains(String
The name to search for name)Implements abstract io. Implements io. Checks to see if there is a value with the specified name |
| private boolean | |
| public boolean | containsValue(CharSequence
the name of the header to find name, CharSequence the value of the header to find value, boolean true then a case insensitive compare is run to compare values.
otherwise a case sensitive compare is run to compare values.Overrides io. Returns |
| public void | |
| pack-priv static void | |
| public List | entries()
Overrides default io. Implements abstract io. Returns all entries in the multi-map. |
| public void | |
| public void | forEach(BiConsumer<String, String> action)
Overrides default io. Allows iterating over the entries in the map |
| public String | get(CharSequence
The name of the header to search name)Overrides io. Implements io. Returns the value of a header with the specified name. |
| public String | get(String
The name of the header to search name)Implements abstract io. Implements io. Returns the value of with the specified name. |
| private CharSequence | |
| public List | getAll(CharSequence
The name of the headers to search name)Overrides io. Implements io. Like |
| public List | getAll(String
The name to search name)Implements abstract io. Implements io. Returns the values with the specified name |
| public Integer | getInt(CharSequence
the name of the header to search name)Implements abstract io. Returns the integer value of a header with the specified name. |
| public int | getInt(CharSequence
the name of the header to search name, int the default value defaultValue)Implements abstract io. Returns the integer value of a header with the specified name. |
| public Short | getShort(CharSequence
the name of the header to search name)Implements abstract io. Returns the short value of a header with the specified name. |
| public short | getShort(CharSequence
the name of the header to search name, short the default value defaultValue)Implements abstract io. Returns the short value of a header with the specified name. |
| public Long | getTimeMillis(CharSequence
the name of the header to search name)Implements abstract io. Returns the date value of a header with the specified name. |
| public long | getTimeMillis(CharSequence
the name of the header to search name, long the default value defaultValue)Implements abstract io. Returns the date value of a header with the specified name. |
| public static HeadersMultiMap | |
| public static HeadersMultiMap | |
| public boolean | isEmpty()
Implements abstract io. Implements io. Return true if empty |
| public Iterator | iterator()
Implements abstract io. Implements java. Returns an iterator over elements of type |
| public Iterator | iteratorCharSequence()
Implements abstract io.
|
| public Set | names()
Implements abstract io. Implements io. Gets a immutable |
| public HeadersMultiMap | remove(CharSequence
The name of the header to remove name)Overrides io. Implements io. Like |
| public HeadersMultiMap | remove(final String
The name of the value to remove name)Implements abstract io. Implements io. Removes the value with the given name |
| private void | |
| public HeadersMultiMap | set(CharSequence name, CharSequence value)
Implements io. Like |
| public HeadersMultiMap | set(String
The name name, String The value value)Implements io. Sets a |
| public HeadersMultiMap | |
| public HeadersMultiMap | set(CharSequence
The name of the header being set name, Object The value of the header being set value)Overrides io. Sets a header with the specified name and value. |
| public HeadersMultiMap | set(CharSequence
The name of the headers being set name, Iterable<T> The values of the headers being set values)Overrides io. Implements io. Like |
| public HeadersMultiMap | set(String
The name of the headers being set name, Iterable<T> The values of the headers being set values)Implements abstract io. Implements io. Sets values for the specified name. |
| private HeadersMultiMap | |
| private MultiMap | |
| public MultiMap | |
| public MultiMap | setAll(Map<String, String> headers)
Implements io. Cleans and set all values of the given instance |
| public HttpHeaders | setInt(CharSequence
The name to modify name, int The value value)Implements abstract io. Set the |
| public HttpHeaders | setShort(CharSequence
The name to modify name, short The value value)Implements abstract io. Set the |
| public int | size()
Implements abstract io. Implements io. Return the number of keys. |
| public String | toString()
Overrides io. Returns a string representation of the object. |
| private static CharSequence | Returns: the char sequencethe value value)Convert the |
| private static void |