java.lang.Object | |
↳ | org.apache.http.message.BasicHeader |
This class is deprecated.
Please use openConnection()
instead.
Please visit this webpage
for further details.
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>
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor with name and value
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates and returns a copy of this
Object .
| |||||||||||
Returns an array of
HeaderElement s constructed from my value.
| |||||||||||
Returns the header name.
| |||||||||||
Returns the header value.
| |||||||||||
Returns a
String representation of the header.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.http.Header
|
Constructor with name and value
name | the header name |
---|---|
value | the header value |
Creates and returns a copy of this Object
. The default
implementation returns a so-called "shallow" copy: It creates a new
instance of the same class and then copies the field values (including
object references) from this instance to the new instance. A "deep" copy,
in contrast, would also recursively clone nested objects. A subclass that
needs to implement this kind of cloning should call super.clone()
to create the new instance and then create deep copies of the nested,
mutable objects.
CloneNotSupportedException |
---|
Returns an array of HeaderElement
s constructed from my value.
ParseException | in case of a parse error |
---|
Returns the header value.
Returns a String
representation of the header.