| Modifier and Type | Class and Description |
|---|---|
| private static class | EmptyHttpHeaders.
Deprecated
This class is needed to break a cyclic static initialization loop between HttpHeaders and
EmptyHttpHeaders.
|
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final Iterator | |
| public static final EmptyHttpHeaders |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public HttpHeaders | |
| public HttpHeaders | add(String name, Iterable<?> values)
Implements abstract io. |
| public HttpHeaders | addInt(CharSequence
The name to modify name, int The value value)Implements abstract io. name to value.
|
| public HttpHeaders | addShort(CharSequence
The name to modify name, short The value value)Implements abstract io. name to value.
|
| public HttpHeaders | clear()
Implements abstract io. HttpMessage.
|
| public boolean | |
| public List | entries()
Implements abstract io. List that contains all headers in this object.
|
| public String | |
| public List | |
| public Integer | getInt(CharSequence
the name of the header to search name)Implements abstract io. |
| public int | getInt(CharSequence
the name of the header to search name, int the default value defaultValue)Implements abstract io. |
| public Short | getShort(CharSequence
the name of the header to search name)Implements abstract io. |
| public short | getShort(CharSequence
the name of the header to search name, short the default value defaultValue)Implements abstract io. |
| public Long | getTimeMillis(CharSequence
the name of the header to search name)Implements abstract io. |
| public long | getTimeMillis(CharSequence
the name of the header to search name, long the default value defaultValue)Implements abstract io. |
| pack-priv static EmptyHttpHeaders | instance()
Deprecated
Use
EmptyHttpHeaders#INSTANCE
This is needed to break a cyclic static initialization loop between |
| public boolean | isEmpty()
Implements abstract io. |
| public Iterator | iterator()
Implements abstract io. Implements java. T.
|
| public Iterator | iteratorCharSequence()
Implements abstract io. |
| public Set | names()
Implements abstract io. Set that contains the names of all headers in this object.
|
| public HttpHeaders | |
| public HttpHeaders | |
| public HttpHeaders | set(String name, Iterable<?> values)
Implements abstract io. |
| public HttpHeaders | setInt(CharSequence
The name to modify name, int The value value)Implements abstract io. name to value.
|
| public HttpHeaders | setShort(CharSequence
The name to modify name, short The value value)Implements abstract io. name to value.
|
| public int | size()
Implements abstract io. |
| EMPTY_CHARS_ITERATOR | back to summary |
|---|---|
| pack-priv static final Iterator<Map. | |
| INSTANCE | back to summary |
|---|---|
| public static final EmptyHttpHeaders INSTANCE | |
| EmptyHttpHeaders | back to summary |
|---|---|
| protected EmptyHttpHeaders() | |
| add | back to summary |
|---|---|
| public HttpHeaders add(String name, Object value) Implements abstract io.
| |
| add | back to summary |
|---|---|
| public HttpHeaders add(String name, Iterable<?> values) Implements abstract io.
| |
| addInt | back to summary |
|---|---|
| public HttpHeaders addInt(CharSequence name, int value) Implements abstract io. Doc from io. Add the
| |
| addShort | back to summary |
|---|---|
| public HttpHeaders addShort(CharSequence name, short value) Implements abstract io. Doc from io. Add the
| |
| clear | back to summary |
|---|---|
| public HttpHeaders clear() Implements abstract io. Doc from io. Removes all headers from this
| |
| contains | back to summary |
|---|---|
| public boolean contains(String name) Implements abstract io.
| |
| entries | back to summary |
|---|---|
| public List Implements abstract io. Doc from io. Returns a new
| |
| get | back to summary |
|---|---|
| public String get(String name) Implements abstract io.
| |
| getAll | back to summary |
|---|---|
| public List Implements abstract io.
| |
| getInt | back to summary |
|---|---|
| public Integer getInt(CharSequence name) Implements abstract io. Doc from io. Returns the integer value of a header with the specified name. If there are more than one values for the specified name, the first value is returned.
| |
| getInt | back to summary |
|---|---|
| public int getInt(CharSequence name, int defaultValue) Implements abstract io. Doc from io. Returns the integer value of a header with the specified name. If there are more than one values for the specified name, the first value is returned.
| |
| getShort | back to summary |
|---|---|
| public Short getShort(CharSequence name) Implements abstract io. Doc from io. Returns the short value of a header with the specified name. If there are more than one values for the specified name, the first value is returned.
| |
| getShort | back to summary |
|---|---|
| public short getShort(CharSequence name, short defaultValue) Implements abstract io. Doc from io. Returns the short value of a header with the specified name. If there are more than one values for the specified name, the first value is returned.
| |
| getTimeMillis | back to summary |
|---|---|
| public Long getTimeMillis(CharSequence name) Implements abstract io. Doc from io. Returns the date value of a header with the specified name. If there are more than one values for the specified name, the first value is returned.
| |
| getTimeMillis | back to summary |
|---|---|
| public long getTimeMillis(CharSequence name, long defaultValue) Implements abstract io. Doc from io. Returns the date value of a header with the specified name. If there are more than one values for the specified name, the first value is returned.
| |
| instance | back to summary |
|---|---|
| pack-priv static EmptyHttpHeaders instance()
Deprecated
This is needed to break a cyclic static initialization loop between
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements abstract io. Doc from io. Checks if no header exists.
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements abstract io. Implements java. Doc from java. Returns an iterator over elements of type | |
| iteratorCharSequence | back to summary |
|---|---|
| public Iterator Implements abstract io.
| |
| names | back to summary |
|---|---|
| public Set Implements abstract io. Doc from io. Returns a new
| |
| remove | back to summary |
|---|---|
| public HttpHeaders remove(String name) Implements abstract io.
| |
| set | back to summary |
|---|---|
| public HttpHeaders set(String name, Object value) Implements abstract io.
| |
| set | back to summary |
|---|---|
| public HttpHeaders set(String name, Iterable<?> values) Implements abstract io.
| |
| setInt | back to summary |
|---|---|
| public HttpHeaders setInt(CharSequence name, int value) Implements abstract io. Doc from io. Set the
| |
| setShort | back to summary |
|---|---|
| public HttpHeaders setShort(CharSequence name, short value) Implements abstract io. Doc from io. Set the
| |
| size | back to summary |
|---|---|
| public int size() Implements abstract io. Doc from io. Returns the number of headers in this object.
| |
Deprecated
HttpHeaders and
EmptyHttpHeaders.
| Modifier and Type | Field and Description |
|---|---|
| private static final EmptyHttpHeaders | EMPTY_HEADERS
The instance is instantiated here to break the cyclic static initialization between |
| Access | Constructor and Description |
|---|---|
| private |
| EMPTY_HEADERS | back to summary |
|---|---|
| private static final EmptyHttpHeaders EMPTY_HEADERS
Deprecated
The instance is instantiated here to break the cyclic static initialization between | |
| InstanceInitializer | back to summary |
|---|---|
| private InstanceInitializer() | |