Package | Description |
---|---|
org.apache.http.client |
Client HTTP communication APIs.
|
org.apache.http.impl.client |
Default HTTP client implementation.
|
Modifier and Type | Class and Description |
---|---|
class |
HttpResponseException
Signals a non 2xx HTTP response.
|
Modifier and Type | Method and Description |
---|---|
HttpResponse |
HttpClient.execute(HttpHost target,
HttpRequest request)
Executes HTTP request using the default context.
|
HttpResponse |
HttpClient.execute(HttpHost target,
HttpRequest request,
HttpContext context)
Executes HTTP request using the given context.
|
<T> T |
HttpClient.execute(HttpHost target,
HttpRequest request,
ResponseHandler<? extends T> responseHandler)
Executes HTTP request to the target using the default context and
processes the response using the given response handler.
|
<T> T |
HttpClient.execute(HttpHost target,
HttpRequest request,
ResponseHandler<? extends T> responseHandler,
HttpContext context)
Executes HTTP request to the target using the given context and
processes the response using the given response handler.
|
HttpResponse |
HttpClient.execute(HttpUriRequest request)
Executes HTTP request using the default context.
|
HttpResponse |
HttpClient.execute(HttpUriRequest request,
HttpContext context)
Executes HTTP request using the given context.
|
<T> T |
HttpClient.execute(HttpUriRequest request,
ResponseHandler<? extends T> responseHandler)
Executes HTTP request using the default context and processes the
response using the given response handler.
|
<T> T |
HttpClient.execute(HttpUriRequest request,
ResponseHandler<? extends T> responseHandler,
HttpContext context)
Executes HTTP request using the given context and processes the
response using the given response handler.
|
T |
ResponseHandler.handleResponse(HttpResponse response)
Processes an
HttpResponse and returns some value
corresponding to that response. |
Modifier and Type | Method and Description |
---|---|
protected CloseableHttpResponse |
AbstractHttpClient.doExecute(HttpHost target,
HttpRequest request,
HttpContext context)
Deprecated.
|
protected CloseableHttpResponse |
MinimalHttpClient.doExecute(HttpHost target,
HttpRequest request,
HttpContext context) |
protected CloseableHttpResponse |
InternalHttpClient.doExecute(HttpHost target,
HttpRequest request,
HttpContext context) |
protected abstract CloseableHttpResponse |
CloseableHttpClient.doExecute(HttpHost target,
HttpRequest request,
HttpContext context) |
HttpResponse |
DecompressingHttpClient.execute(HttpHost target,
HttpRequest request)
Deprecated.
|
CloseableHttpResponse |
CloseableHttpClient.execute(HttpHost target,
HttpRequest request)
Executes HTTP request using the default context.
|
HttpResponse |
DecompressingHttpClient.execute(HttpHost target,
HttpRequest request,
HttpContext context)
Deprecated.
|
CloseableHttpResponse |
CloseableHttpClient.execute(HttpHost target,
HttpRequest request,
HttpContext context)
Executes HTTP request using the given context.
|
<T> T |
DecompressingHttpClient.execute(HttpHost target,
HttpRequest request,
ResponseHandler<? extends T> responseHandler)
Deprecated.
|
<T> T |
CloseableHttpClient.execute(HttpHost target,
HttpRequest request,
ResponseHandler<? extends T> responseHandler)
Executes a request using the default context and processes the
response using the given response handler.
|
<T> T |
DecompressingHttpClient.execute(HttpHost target,
HttpRequest request,
ResponseHandler<? extends T> responseHandler,
HttpContext context)
Deprecated.
|
<T> T |
CloseableHttpClient.execute(HttpHost target,
HttpRequest request,
ResponseHandler<? extends T> responseHandler,
HttpContext context)
Executes a request using the default context and processes the
response using the given response handler.
|
HttpResponse |
DecompressingHttpClient.execute(HttpUriRequest request)
Deprecated.
|
CloseableHttpResponse |
CloseableHttpClient.execute(HttpUriRequest request)
Executes HTTP request using the default context.
|
HttpResponse |
DecompressingHttpClient.execute(HttpUriRequest request,
HttpContext context)
Deprecated.
|
CloseableHttpResponse |
CloseableHttpClient.execute(HttpUriRequest request,
HttpContext context)
Executes HTTP request using the given context.
|
<T> T |
DecompressingHttpClient.execute(HttpUriRequest request,
ResponseHandler<? extends T> responseHandler)
Deprecated.
|
<T> T |
CloseableHttpClient.execute(HttpUriRequest request,
ResponseHandler<? extends T> responseHandler)
Executes a request using the default context and processes the
response using the given response handler.
|
<T> T |
DecompressingHttpClient.execute(HttpUriRequest request,
ResponseHandler<? extends T> responseHandler,
HttpContext context)
Deprecated.
|
<T> T |
CloseableHttpClient.execute(HttpUriRequest request,
ResponseHandler<? extends T> responseHandler,
HttpContext context)
Executes a request using the default context and processes the
response using the given response handler.
|