| Modifier and Type | Method and Description |
|---|---|
| public HttpResponse | Returns: the response to the request. This is always a final response, never an intermediate response with an 1xx status code. Whether redirects or authentication challenges will be returned or handled automatically depends on the implementation and configuration of this client.the request to execute request)
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 HttpResponse | Returns: the response to the request. This is always a final response, never an intermediate response with an 1xx status code. Whether redirects or authentication challenges will be returned or handled automatically depends on the implementation and configuration of this client.the request to execute request, HttpContext the context to use for the execution, or
context)null to use the default context
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 ClassicHttpResponse | Returns: the response to the request. This is always a final response, never an intermediate response with an 1xx status code. Whether redirects or authentication challenges will be returned or handled automatically depends on the implementation and configuration of this client.the target host for the request.
Implementations may accept target, 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)
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 HttpResponse | Returns: the response to the request. This is always a final response, never an intermediate response with an 1xx status code. Whether redirects or authentication challenges will be returned or handled automatically depends on the implementation and configuration of this client.the target host for the request.
Implementations may accept target, 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, HttpContext the context to use for the execution, or
context)null to use the default context
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 <T> T | Returns: the response object as generated by the response handler.the request to execute request, HttpClientResponseHandler<? extends T> the response handler responseHandler)Executes HTTP request using the default context and processes the response using the given response handler. |
| public <T> T | Returns: the response object as generated by the response handler.the request to execute request, HttpContext the context to use for the execution, or
context, HttpClientResponseHandler<? extends T> null to use the default contextthe response handler responseHandler)Executes HTTP request using the given context and processes the response using the given response handler. |
| public <T> T | Returns: the response object as generated by the response handler.the target host for the request.
Implementations may accept target, 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, HttpClientResponseHandler<? extends T> the response handler responseHandler)Executes HTTP request to the target using the default context and processes the response using the given response handler. |
| public <T> T | Returns: the response object as generated by the response handler.the target host for the request.
Implementations may accept target, 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, HttpContext the context to use for the execution, or
context, HttpClientResponseHandler<? extends T> null to use the default contextthe response handler responseHandler)Executes HTTP request to the target using the given context and processes the response using the given response handler. |
| public default ClassicHttpResponse | Returns: the response to the request. This is always a final response, never an intermediate response with an 1xx status code. Whether redirects or authentication challenges will be returned or handled automatically depends on the implementation and configuration of this client. The response returned by this method must be closed withCloseable#close() in order ensure deallocation
of system resources.the target host for the request.
Implementations may accept target, 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, HttpContext the context to use for the execution, or
context)null to use the default contextExecutes the request and opens the response stream using the given context. |
| execute | back to summary |
|---|---|
| public HttpResponse execute(ClassicHttpRequest request) throws IOException
Deprecated It is strongly recommended to use execute methods with Executes HTTP request using the default context.
| |
| execute | back to summary |
|---|---|
| public HttpResponse execute(ClassicHttpRequest request, HttpContext context) throws IOException
Deprecated It is strongly recommended to use execute methods with Executes HTTP request using the given context.
| |
| execute | back to summary |
|---|---|
| public ClassicHttpResponse execute(HttpHost target, ClassicHttpRequest request) throws IOException
Deprecated It is strongly recommended to use execute methods with Executes HTTP request using the default context.
| |
| execute | back to summary |
|---|---|
| public HttpResponse execute(HttpHost target, ClassicHttpRequest request, HttpContext context) throws IOException
Deprecated It is strongly recommended to use execute methods with Executes HTTP request using the given context.
| |
| execute | back to summary |
|---|---|
| public <T> T execute(ClassicHttpRequest request, HttpClientResponseHandler<? extends T> responseHandler) throws IOException Executes HTTP request using the default context and processes the response using the given response handler.
Implementing classes are required to ensure that 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(ClassicHttpRequest request, HttpContext context, HttpClientResponseHandler<? extends T> responseHandler) throws IOException Executes HTTP request using the given context and processes the response using the given response handler.
Implementing classes are required to ensure that 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(HttpHost target, ClassicHttpRequest request, HttpClientResponseHandler<? extends T> responseHandler) throws IOException Executes HTTP request to the target using the default context and processes the response using the given response handler.
Implementing classes are required to ensure that 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(HttpHost target, ClassicHttpRequest request, HttpContext context, HttpClientResponseHandler<? extends T> responseHandler) throws IOException Executes HTTP request to the target using the given context and processes the response using the given response handler.
Implementing classes are required to ensure that 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
| |
| executeOpen | back to summary |
|---|---|
| public default ClassicHttpResponse executeOpen(HttpHost target, ClassicHttpRequest request, HttpContext context) throws IOException Executes the request and opens the response stream using the given context.
| |