public interface Header
The HTTP header fields follow the same generic format as that given in Section 3.1 of RFC 822. Each header field consists of a name followed by a colon (":") and the field value. Field names are case-insensitive. The field value MAY be preceded by any amount of LWS, though a single SP is preferred.
message-header = field-name ":" [ field-value ]
field-name = token
field-value = *( field-content | LWS )
field-content = <the OCTETs making up the field-value
and consisting of either *TEXT or combinations
of token, separators, and quoted-string>
| Modifier and Type | Method and Description |
|---|---|
HeaderElement[] |
getElements()
Parses the value.
|
String |
getName()
Get the name of the Header.
|
String |
getValue()
Get the value of the Header.
|
String getName()
nullString getValue()
nullHeaderElement[] getElements() throws ParseException
HeaderElement entries, may be empty, but is never nullParseExceptionCopyright © 2005–2013 The Apache Software Foundation. All rights reserved.