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>
Summary
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
public
BasicHeader(String name, String value)
Constructor with name and value
Parameters
name
| the header name |
value
| the header value
|
Public Methods
public
Object
clone()
Returns a new instance of the same class as the receiver, whose slots
have been filled in with the values in the slots of the receiver.
Classes which wish to support cloning must specify that they implement
the Cloneable interface, since the implementation checks for this.
Returns
- Object a shallow copy of this object.
Returns an array of
HeaderElements constructed from my value.
Returns
- an array of header elements
public
String
getValue()
Returns the header value.
Returns
- String value The current value.
public
String
toString()
Returns a
String representation of the header.