Headers.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private abstract static class | |
| private static class | |
| private static class | |
| private static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static <K, V> List | getAllAsString(Headers<K, V, ?> headers, K
the name of the header to retrieve name)
|
| public static <K, V> String | Returns: the first header value if the header is found.null if there's no such entry.the headers to get the headers, K name fromthe name of the header to retrieve name)
|
| public static Iterator | iteratorAsString(Iterable<Map.
|
| public static Set | namesAsString(Headers<CharSequence, CharSequence, ?>
the headers to get the names from headers)
|
| public static <K, V> String |
| HeadersUtils | back to summary |
|---|---|
| private HeadersUtils() | |
| getAllAsString | back to summary |
|---|---|
| public static <K, V> List
| |
| getAsString | back to summary |
|---|---|
| public static <K, V> String getAsString(Headers<K, V, ?> headers, K name)
| |
| iteratorAsString | back to summary |
|---|---|
| public static Iterator
| |
| namesAsString | back to summary |
|---|---|
| public static Set
| |
| toString | back to summary |
|---|---|
| public static <K, V> String toString(Class<?> headersClass, Iterator<Map. Helper for implementing toString for | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(String
element to be added to this set e)Overrides java. Implements java. |
| public boolean | addAll(Collection<? extends String>
collection containing elements to be added to this set c)Overrides java. Implements java. |
| CharSequenceDelegatingStringSet | back to summary |
|---|---|
| pack-priv CharSequenceDelegatingStringSet(Set<CharSequence> allNames) | |
| add | back to summary |
|---|---|
| public boolean add(String e) Overrides java. Implements java. Doc from java. Adds the specified element to this set if it is not already present
(optional operation). More formally, adds the specified element
The stipulation above does not imply that sets must accept all
elements; sets may refuse to add any particular element, including
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(Collection<? extends String> c) Overrides java. Implements java. Doc from java. Adds all of the elements in the specified collection to this set if
they're not already present (optional operation). If the specified
collection is also a set, the
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Overrides java. Implements java. |
| public boolean | contains(Object
element whose presence in this set is to be tested o)Overrides java. Implements java. true if this set contains the specified element.
|
| public boolean | isEmpty()
Overrides java. Implements java. true if this set contains no elements.
|
| public Iterator | iterator()
Implements abstract java. Implements java. |
| public boolean | remove(Object
object to be removed from this set, if present o)Overrides java. Implements java. |
| public int | size()
Implements abstract java. Implements java. |
| allNames | back to summary |
|---|---|
| protected final Set<T> allNames | |
| DelegatingStringSet | back to summary |
|---|---|
| pack-priv DelegatingStringSet(Set<T> allNames) | |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Implements java. Doc from java. Removes all of the elements from this set (optional operation). The set will be empty after this call returns.
| |
| contains | back to summary |
|---|---|
| public boolean contains(Object o) Overrides java. Implements java. Doc from java. Returns | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Overrides java. Implements java. Doc from java. Returns
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements abstract java. Implements java. Doc from java. Returns an iterator over the elements in this set. The elements are returned in no particular order (unless this set is an instance of some class that provides a guarantee). | |
| remove | back to summary |
|---|---|
| public boolean remove(Object o) Overrides java. Implements java. Doc from java. Removes the specified element from this set if it is present
(optional operation). More formally, removes an element | |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this set (its cardinality). If this
set contains more than
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Map. | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public String | setValue(String
new value to be stored in this entry value)Implements java. |
| public String |
| entry | back to summary |
|---|---|
| private final Map. | |
| name | back to summary |
|---|---|
| private String name | |
| value | back to summary |
|---|---|
| private String value | |
| StringEntry | back to summary |
|---|---|
| pack-priv StringEntry(Map. | |
| getKey | back to summary |
|---|---|
| public String getKey() Implements java. Doc from java. Returns the key corresponding to this entry. | |
| getValue | back to summary |
|---|---|
| public String getValue() Implements java. Doc from java. Returns the value corresponding to this entry. If the mapping
has been removed from the backing map (by the iterator's
| |
| setValue | back to summary |
|---|---|
| public String setValue(String value) Implements java. Doc from java. Replaces the value corresponding to this entry with the specified
value (optional operation). (Writes through to the map.) The
behavior of this call is undefined if the mapping has already been
removed from the map (by the iterator's | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Iterator |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public Map. | |
| public void | remove()
Overrides default java. |
| iter | back to summary |
|---|---|
| private final Iterator<Map. | |
| StringEntryIterator | back to summary |
|---|---|
| pack-priv StringEntryIterator(Iterator<Map. | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public Map. Implements java. Doc from java. Returns the next element in the iteration. | |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public String | |
| public void | remove()
Overrides default java. |
| iter | back to summary |
|---|---|
| private final Iterator<T> iter | |
| StringIterator | back to summary |
|---|---|
| pack-priv StringIterator(Iterator<T> iter) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public String next() Implements java. Doc from java. Returns the next element in the iteration. | |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |