@DoNotInherit
public abstract class HttpHeader
extends java.lang.Object
RawHeader
. Not for user extension.Constructor and Description |
---|
HttpHeader() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
is(java.lang.String nameInLowerCase)
Returns true if and only if nameInLowerCase.equals(lowercaseName()).
|
abstract boolean |
isNot(java.lang.String nameInLowerCase)
Returns !
|
abstract java.lang.String |
lowercaseName()
Returns the lower-cased name of the header.
|
abstract java.lang.String |
name()
Returns the name of the header.
|
static HttpHeader |
parse(java.lang.String name,
java.lang.String value)
Attempts to parse the given header name and value string into a header model instance.
|
abstract boolean |
renderInRequests()
Returns true if and only if the header is to be rendered in requests.
|
abstract boolean |
renderInResponses()
Returns true if and only if the header is to be rendered in responses.
|
abstract java.lang.String |
value()
Returns the String representation of the value of the header.
|
public abstract java.lang.String name()
public abstract java.lang.String value()
public abstract java.lang.String lowercaseName()
public abstract boolean is(java.lang.String nameInLowerCase)
public abstract boolean isNot(java.lang.String nameInLowerCase)
public abstract boolean renderInRequests()
public abstract boolean renderInResponses()
public static HttpHeader parse(java.lang.String name, java.lang.String value)
java.lang.IllegalArgumentException
- if parsing is unsuccessful.