| 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)Executes HTTP request using the default context. |
| 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 contextExecutes HTTP request using the given context. |
| 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, HttpRequest null
if they can still determine a route, for example
to a default target or by inspecting the request.the request to execute request)Executes HTTP request using the default context. |
| 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, HttpRequest 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 HTTP request using the given context. |
| public <T> T | Returns: the response object as generated by the response handler.the request to execute request, ResponseHandler<? 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, ResponseHandler<? extends T> the response handler responseHandler, HttpContext the context to use for the execution, or
context)null to use the default contextExecutes 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, HttpRequest null
if they can still determine a route, for example
to a default target or by inspecting the request.the request to execute request, ResponseHandler<? 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, HttpRequest null
if they can still determine a route, for example
to a default target or by inspecting the request.the request to execute request, ResponseHandler<? extends T> the response handler responseHandler, HttpContext the context to use for the execution, or
context)null to use the default contextExecutes HTTP request to the target using the given context and processes the response using the given response handler. |
| public ClientConnectionManager | Returns: the connection manager
Deprecated
(4.3) use
Obtains the connection manager used by this client.
org..
|
| public HttpParams | Returns: the default parameters
Deprecated
(4.3) use
Obtains the parameters for this client.
org..
|
| execute | back to summary |
|---|---|
| public HttpResponse execute(HttpUriRequest request) throws IOException, ClientProtocolException Executes HTTP request using the default context.
| |
| execute | back to summary |
|---|---|
| public HttpResponse execute(HttpUriRequest request, HttpContext context) throws IOException, ClientProtocolException Executes HTTP request using the given context.
| |
| execute | back to summary |
|---|---|
| public HttpResponse execute(HttpHost target, HttpRequest request) throws IOException, ClientProtocolException Executes HTTP request using the default context.
| |
| execute | back to summary |
|---|---|
| public HttpResponse execute(HttpHost target, HttpRequest request, HttpContext context) throws IOException, ClientProtocolException Executes HTTP request using the given context.
| |
| execute | back to summary |
|---|---|
| public <T> T execute(HttpUriRequest request, ResponseHandler<? extends T> responseHandler) throws IOException, ClientProtocolException 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(HttpUriRequest request, ResponseHandler<? extends T> responseHandler, HttpContext context) throws IOException, ClientProtocolException 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, HttpRequest request, ResponseHandler<? extends T> responseHandler) throws IOException, ClientProtocolException 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, HttpRequest request, ResponseHandler<? extends T> responseHandler, HttpContext context) throws IOException, ClientProtocolException 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
| |
| getConnectionManager | back to summary |
|---|---|
| public ClientConnectionManager getConnectionManager()
Deprecated Obtains the connection manager used by this client.
| |
| getParams | back to summary |
|---|---|
| public HttpParams getParams()
Deprecated (4.3) use
Obtains the parameters for this client. These parameters will become defaults for all requests being executed with this client, and for the parameters of dependent objects in this client.
| |