public class Headers
A map of HTTP headers that looks up values in a case-insensitive fashion (in accordance with the HTTP spec).
| Constructor and Description |
|---|
Headers(java.util.Map<java.lang.String,java.lang.String> headerMap)
A map of HTTP headers that looks up values in a case-insensitive fashion (in accordance with the HTTP spec).
|
Headers()
A map of HTTP headers that looks up values in a case-insensitive fashion (in accordance with the HTTP spec).
|
Headers(NonExistentClass... headers) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
component1() |
Headers |
copy(java.util.Map<java.lang.String,java.lang.String> headerMap)
A map of HTTP headers that looks up values in a case-insensitive fashion (in accordance with the HTTP spec).
|
boolean |
equals(java.lang.Object p) |
java.lang.String |
get(java.lang.String header)
Returns the value for the specified
header; lookup is case-insensitive in accordance with the HTTP spec. |
java.util.Map<java.lang.String,java.lang.String> |
getHeaderMap() |
int |
hashCode() |
Headers |
plus(NonExistentClass headerValue)
Returns a copy of these headers with a new header added.
|
Headers |
plus(Headers other)
Returns a copy of these headers with new headers added.
|
Headers |
plus(java.util.Map<java.lang.String,java.lang.String> other)
Returns a copy of these headers with new headers added.
|
java.lang.String |
toString() |
Headers |
withHeader(java.lang.String header,
java.lang.String value)
Returns a copy of these headers with a new header added.
|
Headers |
withHeaders(NonExistentClass... headers)
Returns a copy of these headers with new headers added.
|
public Headers(java.util.Map<java.lang.String,java.lang.String> headerMap)
A map of HTTP headers that looks up values in a case-insensitive fashion (in accordance with the HTTP spec).
public Headers()
A map of HTTP headers that looks up values in a case-insensitive fashion (in accordance with the HTTP spec).
public Headers(NonExistentClass... headers)
public java.lang.String get(java.lang.String header)
Returns the value for the specified header; lookup is case-insensitive in accordance with the HTTP spec.
headerpublic Headers plus(NonExistentClass headerValue)
Returns a copy of these headers with a new header added.
If this object already contains the header it will be replaced by the new value.
public Headers plus(Headers other)
Returns a copy of these headers with new headers added.
If this object already contains the headers they will be replaced by the new values.
public Headers plus(java.util.Map<java.lang.String,java.lang.String> other)
Returns a copy of these headers with new headers added.
If this object already contains the headers they will be replaced by the new values.
public Headers withHeader(java.lang.String header, java.lang.String value)
Returns a copy of these headers with a new header added.
If this object already contains the header it will be replaced by the new value.
public Headers withHeaders(NonExistentClass... headers)
Returns a copy of these headers with new headers added.
If this object already contains the headers they will be replaced by the new values.
public java.util.Map<java.lang.String,java.lang.String> getHeaderMap()
public java.util.Map<java.lang.String,java.lang.String> component1()
public Headers copy(java.util.Map<java.lang.String,java.lang.String> headerMap)
A map of HTTP headers that looks up values in a case-insensitive fashion (in accordance with the HTTP spec).
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)