Methods Summary |
---|
public void | addHeader(org.apache.http.Header header)Adds a header to this message. The header will be appended to the end of
the list.
|
public void | addHeader(java.lang.String name, java.lang.String value)Adds a header to this message. The header will be appended to the end of
the list.
|
public boolean | containsHeader(java.lang.String name)Checks if a certain header is present in this message. Header values are
ignored.
|
public org.apache.http.Header[] | getAllHeaders()Returns all the headers of this message. Headers are orderd in the sequence
they will be sent over a connection.
|
public org.apache.http.Header | getFirstHeader(java.lang.String name)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 {@link #getHeaders(String)} is returned.
If there is no matching header in the message null is
returned.
|
public org.apache.http.Header[] | getHeaders(java.lang.String name)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.
|
public org.apache.http.Header | getLastHeader(java.lang.String 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 {@link #getHeaders(String)} is returned. If there is no
matching header in the message null is returned.
|
public org.apache.http.params.HttpParams | getParams()Returns the parameters effective for this message as set by
{@link #setParams(HttpParams)}.
|
public org.apache.http.ProtocolVersion | getProtocolVersion()Returns the protocol version this message is compatible with.
|
public org.apache.http.HeaderIterator | headerIterator()Returns an iterator of all the headers.
|
public org.apache.http.HeaderIterator | headerIterator(java.lang.String name)Returns an iterator of the headers with a given name.
|
public void | removeHeader(org.apache.http.Header header)Removes a header from this message.
|
public void | removeHeaders(java.lang.String name)Removes all headers with a certain name from this message.
|
public void | setHeader(java.lang.String name, java.lang.String value)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.
|
public void | setHeader(org.apache.http.Header header)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.
|
public void | setHeaders(org.apache.http.Header[] headers)Overwrites all the headers in the message.
|
public void | setParams(org.apache.http.params.HttpParams params)Provides parameters to be used for the processing of this message.
|