| Modifier and Type | Field and Description |
|---|---|
| private final ExecRuntime | |
| private final ClassicHttpResponse |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static CloseableHttpResponse | |
| public void | addHeader(final Header
the header to append. header)Implements org. |
| public void | addHeader(final String
the name of the header. name, final Object the value of the header, taken as the value's value)Object#toString().Implements org. |
| public void | close()
Implements java. |
| public boolean | containsHeader(final String
the header name to check for. name)Implements org. |
| public int | countHeaders(final String
the header name to check for. name)Implements org. |
| public int | getCode()
Implements org. |
| public HttpEntity | getEntity()
Implements org. |
| public Header | getFirstHeader(final String
the name of the header to return. name)Implements org. |
| public Header | getHeader(final String
the name of the header to get name)Implements org. |
| public Header[] | getHeaders(final String
the name of the headers to return. name)Implements org. |
| public Header[] | getHeaders()
Implements org. |
| public Header | getLastHeader(final String
the name of the header to return. name)Implements org. |
| public Locale | getLocale()
Implements org. |
| public String | getReasonPhrase()
Implements org. |
| public ProtocolVersion | getVersion()
Implements org. null when not available.
|
| public Iterator | headerIterator()
Implements org. |
| public Iterator | headerIterator(final String
the name of the headers over which to iterate, or
name)null for all headersImplements org. |
| public boolean | removeHeader(final Header
the header to remove. header)Implements org. |
| public boolean | removeHeaders(final String
The name of the headers to remove. name)Implements org. |
| public void | setCode(final int
the HTTP status code. code)Implements org. |
| public void | setEntity(final HttpEntity
the entity to set of this message, or entity)null to unsetImplements 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 Object the value of the header, taken as the value's value)Object#toString().Implements org. |
| public void | setHeaders(final Header...
the array of headers to set. headers)Implements org. |
| public void | setLocale(final Locale
the new locale loc)Implements org. |
| public void | setReasonPhrase(final String
the new reason phrase as a single-line string, or
reason)null to unset the reason phraseImplements org. |
| public void | setVersion(final ProtocolVersion version)
Implements org. |
| public String |
| execRuntime | back to summary |
|---|---|
| private final ExecRuntime execRuntime | |
| response | back to summary |
|---|---|
| private final ClassicHttpResponse response | |
| CloseableHttpResponse | back to summary |
|---|---|
| pack-priv CloseableHttpResponse(final ClassicHttpResponse response, final ExecRuntime execRuntime) | |
| adapt | back to summary |
|---|---|
| pack-priv static CloseableHttpResponse adapt(final ClassicHttpResponse response) | |
| 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 Object value) Implements org. Doc from org. Adds a header to this message. The header will be appended to the end of the list.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| 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. | |
| countHeaders | back to summary |
|---|---|
| public int countHeaders(final String name) Implements org. Doc from org. Checks if a certain header is present in this message and how many times. | |
| getCode | back to summary |
|---|---|
| public int getCode() Implements org. Doc from org. Obtains the code of this response message.
| |
| getEntity | back to summary |
|---|---|
| public HttpEntity getEntity() Implements org. Doc from org. Obtains the message entity, if available.
| |
| 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 | |
| getHeader | back to summary |
|---|---|
| public Header getHeader(final String name) throws ProtocolException Implements org. Doc from org. Gets single first header with the given name. Header name comparison is case insensitive.
| |
| 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 ordered in the sequence they will be sent over a connection. | |
| getHeaders | back to summary |
|---|---|
| public Header[] getHeaders() Implements org. Doc from org. Returns all the headers of this message. Headers are ordered 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 | |
| getLocale | back to summary |
|---|---|
| public Locale getLocale() Implements org. Doc from org. Obtains the locale of this response.
The locale is used to determine the reason phrase
for the | |
| getReasonPhrase | back to summary |
|---|---|
| public String getReasonPhrase() Implements org. Doc from org. Obtains the reason phrase of this response if available. | |
| getVersion | back to summary |
|---|---|
| public ProtocolVersion getVersion() Implements org. Doc from org. Returns protocol version or For incoming messages it represents protocol version this message was transmitted with. For outgoing messages it represents a hint what protocol version should be used to transmit the message.
| |
| headerIterator | back to summary |
|---|---|
| public Iterator Implements org. Doc from org. Returns an iterator of all the headers. | |
| headerIterator | back to summary |
|---|---|
| public Iterator Implements org. Doc from org. Returns an iterator of the headers with a given name. | |
| removeHeader | back to summary |
|---|---|
| public boolean removeHeader(final Header header) Implements org. Doc from org. Removes a header from this message. | |
| removeHeaders | back to summary |
|---|---|
| public boolean removeHeaders(final String name) Implements org. Doc from org. Removes all headers with a certain name from this message. | |
| setCode | back to summary |
|---|---|
| public void setCode(final int code) Implements org. Doc from org. Updates status code of this response message.
| |
| setEntity | back to summary |
|---|---|
| public void setEntity(final HttpEntity entity) Implements org. Doc from org. Sets an entity for this message. Please note that if an entity has already been set it is responsibility of the caller to ensure release of the resources that may be associated with that entity.
| |
| 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 Object 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. | |
| setLocale | back to summary |
|---|---|
| public void setLocale(final Locale loc) Implements org. Doc from org. Changes the locale of this response. | |
| setReasonPhrase | back to summary |
|---|---|
| public void setReasonPhrase(final String reason) Implements org. Doc from org. Updates the status line of this response with a new reason phrase. | |
| setVersion | back to summary |
|---|---|
| public void setVersion(final ProtocolVersion version) Implements org. Doc from org. Sets protocol version. For incoming messages it represents protocol version this message was transmitted with. For outgoing messages it represents a hint what protocol version should be used to transmit the message.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |