Top Description Methods
org.apache.http

public Interface Header

extends NameValuePair
Known Direct Subinterfaces
org.apache.http.FormattedHeader
Known Direct Implementers
org.apache.http.message.BasicHeader

Represents an HTTP header field.

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>
Since
4.0

Method Summary

Modifier and TypeMethod and Description
public HeaderElement[]

Returns:

an array of HeaderElement entries, may be empty, but is never null
getElements
()

Parses the value.

Inherited from org.apache.http.NameValuePair:
getNamegetValue

Method Detail

getElementsback to summary
public HeaderElement[] getElements() throws ParseException

Parses the value.

Returns:HeaderElement[]

an array of HeaderElement entries, may be empty, but is never null

Exceptions
ParseException:
in case of a parsing error