Home » HttpComponents-Core-4.0.1 » org.apache.http » [javadoc | source]
public interface: Header [javadoc | source]

All Known Implementing Classes:
    BufferedHeader, GeneratedHeader, DefaultHeader, BasicHeader, CompactHeader, BasicCompactHeader, FormattedHeader, BufferedCompactHeader, BufferedHeader

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>
Method from org.apache.http.Header Summary:
getElements,   getName,   getValue
Method from org.apache.http.Header Detail:
 public HeaderElement[] getElements() throws ParseException
 public String getName()
 public String getValue()