HttpClient that also implements ModalCloseable.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static HttpHost | |
| protected abstract CloseableHttpResponse | |
| public CloseableHttpResponse | execute(final HttpHost
the target host for the request.
Implementations may accept target, final ClassicHttpRequest null
if they can still determine a route, for example
to a default target or by inspecting the request.the request to execute request, final HttpContext the context to use for the execution, or
context)null to use the default contextImplements org.
Deprecated
It is strongly recommended to use execute methods with
Executes HTTP request using the given context.
HttpClientResponseHandler
such as execute(HttpHost, ClassicHttpRequest, HttpContext, HttpClientResponseHandler) in order
to ensure automatic resource deallocation by the client.
|
| public CloseableHttpResponse | execute(final ClassicHttpRequest
the request to execute request, final HttpContext the context to use for the execution, or
context)null to use the default contextImplements org.
Deprecated
It is strongly recommended to use execute methods with
Executes HTTP request using the given context.
HttpClientResponseHandler
such as execute(ClassicHttpRequest, HttpContext, HttpClientResponseHandler) in order
to ensure automatic resource deallocation by the client.
|
| public CloseableHttpResponse | execute(final ClassicHttpRequest
the request to execute request)Implements org.
Deprecated
It is strongly recommended to use execute methods with
Executes HTTP request using the default context.
HttpClientResponseHandler
such as execute(ClassicHttpRequest, HttpClientResponseHandler) in order
to ensure automatic resource deallocation by the client.
|
| public CloseableHttpResponse | execute(final HttpHost
the target host for the request.
Implementations may accept target, final ClassicHttpRequest null
if they can still determine a route, for example
to a default target or by inspecting the request.the request to execute request)Implements org.
Deprecated
It is strongly recommended to use execute methods with
Executes HTTP request using the default context.
HttpClientResponseHandler
such as execute(HttpHost, ClassicHttpRequest, HttpClientResponseHandler) in order
to ensure automatic resource deallocation by the client.
|
| public <T> T | Returns: the response object as generated by the response handler.the request to execute request, final HttpClientResponseHandler<? extends T> the response handler responseHandler)Implements org. |
| public <T> T | Returns: the response object as generated by the response handler.the request to execute request, final HttpContext the context to use for the execution, or
context, final HttpClientResponseHandler<? extends T> null to use the default contextthe response handler responseHandler)Implements org. |
| public <T> T | Returns: the response object as generated by the response handler.the target host for the request.
Implementations may accept target, final ClassicHttpRequest null
if they can still determine a route, for example
to a default target or by inspecting the request.the request to execute request, final HttpClientResponseHandler<? extends T> the response handler responseHandler)Implements org. |
| public <T> T | Returns: the response object as generated by the response handler.the target host for the request.
Implementations may accept target, final ClassicHttpRequest null
if they can still determine a route, for example
to a default target or by inspecting the request.the request to execute request, final HttpContext the context to use for the execution, or
context, final HttpClientResponseHandler<? extends T> null to use the default contextthe response handler responseHandler)Implements org. |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| CloseableHttpClient | back to summary |
|---|---|
| public CloseableHttpClient() | |
| determineTarget | back to summary |
|---|---|
| private static HttpHost determineTarget(final ClassicHttpRequest request) throws ClientProtocolException | |
| doExecute | back to summary |
|---|---|
| protected abstract CloseableHttpResponse doExecute(HttpHost target, ClassicHttpRequest request, HttpContext context) throws IOException | |
| execute | back to summary |
|---|---|
| public CloseableHttpResponse execute(final HttpHost target, final ClassicHttpRequest request, final HttpContext context) throws IOException Implements org. Doc from org. Deprecated It is strongly recommended to use execute methods with Executes HTTP request using the given context.
| |
| execute | back to summary |
|---|---|
| public CloseableHttpResponse execute(final ClassicHttpRequest request, final HttpContext context) throws IOException Implements org. Doc from org. Deprecated It is strongly recommended to use execute methods with Executes HTTP request using the given context.
| |
| execute | back to summary |
|---|---|
| public CloseableHttpResponse execute(final ClassicHttpRequest request) throws IOException Implements org. Doc from org. Deprecated It is strongly recommended to use execute methods with Executes HTTP request using the default context.
| |
| execute | back to summary |
|---|---|
| public CloseableHttpResponse execute(final HttpHost target, final ClassicHttpRequest request) throws IOException Implements org. Doc from org. Deprecated It is strongly recommended to use execute methods with Executes HTTP request using the default context.
| |
| execute | back to summary |
|---|---|
| public <T> T execute(final ClassicHttpRequest request, final HttpClientResponseHandler<? extends T> responseHandler) throws IOException Implements org. Executes a request using the default context and processes the
response using the given response handler. The content entity associated
with the response is fully consumed and the underlying connection is
released back to the connection manager automatically in all cases
relieving individual
| |
| execute | back to summary |
|---|---|
| public <T> T execute(final ClassicHttpRequest request, final HttpContext context, final HttpClientResponseHandler<? extends T> responseHandler) throws IOException Implements org. Executes a request using the default context and processes the
response using the given response handler. The content entity associated
with the response is fully consumed and the underlying connection is
released back to the connection manager automatically in all cases
relieving individual
| |
| execute | back to summary |
|---|---|
| public <T> T execute(final HttpHost target, final ClassicHttpRequest request, final HttpClientResponseHandler<? extends T> responseHandler) throws IOException Implements org. Executes a request using the default context and processes the
response using the given response handler. The content entity associated
with the response is fully consumed and the underlying connection is
released back to the connection manager automatically in all cases
relieving individual
| |
| execute | back to summary |
|---|---|
| public <T> T execute(final HttpHost target, final ClassicHttpRequest request, final HttpContext context, final HttpClientResponseHandler<? extends T> responseHandler) throws IOException Implements org. Executes a request using the default context and processes the
response using the given response handler. The content entity associated
with the response is fully consumed and the underlying connection is
released back to the connection manager automatically in all cases
relieving individual
| |