java.lang.Object | |
↳ | org.apache.http.message.AbstractHttpMessage |
Known Direct Subclasses |
Known Indirect Subclasses |
Basic implementation of an HTTP message that can be modified.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
headergroup | ||||||||||
|
params |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
||||||||||
|
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Adds a header to this message.
|
||||||||||
|
Adds a header to this message.
|
||||||||||
|
Checks if a certain header is present in this message.
|
||||||||||
|
Returns all the headers of this message.
|
||||||||||
|
Returns the first header with a specified name of this message.
|
||||||||||
|
Returns all the headers with a specified name of this message.
|
||||||||||
|
Returns the last header with a specified name of this message.
|
||||||||||
|
Returns the parameters effective for this message as set by
setParams(HttpParams)
.
|
||||||||||
|
Returns an iterator of the headers with a given name.
|
||||||||||
|
Returns an iterator of all the headers.
|
||||||||||
|
Removes a header from this message.
|
||||||||||
|
Removes all headers with a certain name from this message.
|
||||||||||
|
Overwrites the first header with the same name.
|
||||||||||
|
Overwrites the first header with the same name.
|
||||||||||
|
Overwrites all the headers in the message.
|
||||||||||
|
Provides parameters to be used for the processing of this message.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
|||||||||||
From interface
org.apache.http.HttpMessage
|
Adds a header to this message. The header will be appended to the end of the list.
header | the header to append. |
---|
Adds a header to this message. The header will be appended to the end of the list.
name | the name of the header. |
---|---|
value | the value of the header. |
Checks if a certain header is present in this message. Header values are ignored.
name | the header name to check for. |
---|
Returns all the headers of this message. Headers are orderd in the sequence they will be sent over a connection.
Returns the first header with a specified name of this message. Header
values are ignored. If there is more than one matching header in the
message the first element of
getHeaders(String)
is returned.
If there is no matching header in the message
null
is
returned.
name | the name of the header to return. |
---|
name
or
null
if no such header could be found.
Returns all the headers with a specified name of this message. Header values are ignored. Headers are orderd in the sequence they will be sent over a connection.
name | the name of the headers to return. |
---|
name
.
Returns the last header with a specified name of this message. Header values
are ignored. If there is more than one matching header in the message the
last element of
getHeaders(String)
is returned. If there is no
matching header in the message
null
is returned.
name | the name of the header to return. |
---|
name
.
or
null
if no such header could be found.
Returns the parameters effective for this message as set by
setParams(HttpParams)
.
Returns an iterator of the headers with a given name.
name |
the name of the headers over which to iterate, or
null
for all headers
|
---|
Returns an iterator of all the headers.
Removes a header from this message.
header | the header to remove. |
---|
Removes all headers with a certain name from this message.
name | The name of the headers to remove. |
---|
Overwrites the first header with the same name. The new header will be appended to the end of the list, if no header with the given name can be found.
header | the header to set. |
---|
Overwrites the first header with the same name. The new header will be appended to the end of the list, if no header with the given name can be found.
name | the name of the header. |
---|---|
value | the value of the header. |
Overwrites all the headers in the message.
headers | the array of headers to set. |
---|
Provides parameters to be used for the processing of this message.
params | the parameters |
---|