HttpMessage.
| Modifier and Type | Field and Description |
|---|---|
| protected HeaderGroup | |
| protected HttpParams | params
Deprecated
Do not use.
|
| Access | Constructor and Description |
|---|---|
| protected | AbstractHttpMessage(final HttpParams params)
Deprecated
(4.3) use
AbstractHttpMessage#AbstractHttpMessage()
|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | addHeader(final Header
the header to append. header)Implements org. |
| public void | addHeader(final String
the name of the header. name, final String the value of the header. value)Implements org. |
| public boolean | containsHeader(final String
the header name to check for. name)Implements org. |
| public Header[] | getAllHeaders()
Implements org. |
| public Header | getFirstHeader(final String
the name of the header to return. name)Implements org. |
| public Header[] | getHeaders(final String
the name of the headers to return. name)Implements org. |
| public Header | getLastHeader(final String
the name of the header to return. name)Implements org. |
| public HttpParams | getParams()
Implements org.
Deprecated
(4.3) use constructor parameters of configuration API provided by HttpClient
Returns the parameters effective for this message as set by
setParams(HttpParams).
|
| public HeaderIterator | headerIterator()
Implements org. |
| public HeaderIterator | headerIterator(final String
the name of the headers over which to iterate, or
name)null for all headersImplements org. |
| public void | removeHeader(final Header
the header to remove. header)Implements org. |
| public void | removeHeaders(final String
The name of the headers to remove. name)Implements org. |
| public void | setHeader(final Header
the header to set. header)Implements org. |
| public void | setHeader(final String
the name of the header. name, final String the value of the header. value)Implements org. |
| public void | setHeaders(final Header[]
the array of headers to set. headers)Implements org. |
| public void | setParams(final HttpParams
the parameters params)Implements org.
Deprecated
(4.3) use constructor parameters of configuration API provided by HttpClient
Provides parameters to be used for the processing of this message.
|
| headergroup | back to summary |
|---|---|
| protected HeaderGroup headergroup | |
| params | back to summary |
|---|---|
| protected HttpParams params
Deprecated Do not use. | |
| AbstractHttpMessage | back to summary |
|---|---|
| protected AbstractHttpMessage(final HttpParams params)
Deprecated
| |
| AbstractHttpMessage | back to summary |
|---|---|
| protected AbstractHttpMessage() | |
| addHeader | back to summary |
|---|---|
| public void addHeader(final Header header) Implements org. Doc from org. Adds a header to this message. The header will be appended to the end of the list. | |
| addHeader | back to summary |
|---|---|
| public void addHeader(final String name, final String value) Implements org. Doc from org. Adds a header to this message. The header will be appended to the end of the list. | |
| containsHeader | back to summary |
|---|---|
| public boolean containsHeader(final String name) Implements org. Doc from org. Checks if a certain header is present in this message. Header values are ignored. | |
| getAllHeaders | back to summary |
|---|---|
| public Header[] getAllHeaders() Implements org. Doc from org. Returns all the headers of this message. Headers are orderd in the sequence they will be sent over a connection. | |
| getFirstHeader | back to summary |
|---|---|
| public Header getFirstHeader(final String name) Implements org. Doc from org. 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 | back to summary |
|---|---|
| public Header[] getHeaders(final String name) Implements org. Doc from org. 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. | |
| getLastHeader | back to summary |
|---|---|
| public Header getLastHeader(final String name) Implements org. Doc from org. 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 | |
| getParams | back to summary |
|---|---|
| public HttpParams getParams() Implements org. Doc from org. Deprecated (4.3) use constructor parameters of configuration API provided by HttpClient Returns the parameters effective for this message as set by
| |
| headerIterator | back to summary |
|---|---|
| public HeaderIterator headerIterator() Implements org. Doc from org. Returns an iterator of all the headers.
| |
| headerIterator | back to summary |
|---|---|
| public HeaderIterator headerIterator(final String name) Implements org. Doc from org. Returns an iterator of the headers with a given name.
| |
| removeHeader | back to summary |
|---|---|
| public void removeHeader(final Header header) Implements org. Doc from org. Removes a header from this message. | |
| removeHeaders | back to summary |
|---|---|
| public void removeHeaders(final String name) Implements org. Doc from org. Removes all headers with a certain name from this message. | |
| setHeader | back to summary |
|---|---|
| public void setHeader(final Header header) Implements org. Doc from org. 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. | |
| setHeader | back to summary |
|---|---|
| public void setHeader(final String name, final String value) Implements org. Doc from org. 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. | |
| setHeaders | back to summary |
|---|---|
| public void setHeaders(final Header[] headers) Implements org. Doc from org. Overwrites all the headers in the message. | |
| setParams | back to summary |
|---|---|
| public void setParams(final HttpParams params) Implements org. Doc from org. Deprecated (4.3) use constructor parameters of configuration API provided by HttpClient Provides parameters to be used for the processing of this message.
| |