Package | Description |
---|---|
org.apache.http.client |
Client HTTP communication APIs.
|
org.apache.http.client.fluent |
Simple facade APIs for HttpClient based on the concept of
a fluent interface.
|
org.apache.http.impl.client |
Default HTTP client implementation.
|
org.apache.http.impl.client.cache |
This package contains a cache module that can be used for HTTP/1.1
client-side caching.
|
Modifier and Type | Class and Description |
---|---|
class |
HttpResponseException
Signals a non 2xx HTTP response.
|
Modifier and Type | Method and Description |
---|---|
org.apache.http.HttpResponse |
HttpClient.execute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request)
Executes HTTP request using the default context.
|
org.apache.http.HttpResponse |
HttpClient.execute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context)
Executes HTTP request using the given context.
|
<T> T |
HttpClient.execute(org.apache.http.HttpHost target,
org.apache.http.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(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
ResponseHandler<? extends T> responseHandler,
org.apache.http.protocol.HttpContext context)
Executes HTTP request to the target using the given context and
processes the response using the given response handler.
|
org.apache.http.HttpResponse |
HttpClient.execute(HttpUriRequest request)
Executes HTTP request using the default context.
|
org.apache.http.HttpResponse |
HttpClient.execute(HttpUriRequest request,
org.apache.http.protocol.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,
org.apache.http.protocol.HttpContext context)
Executes HTTP request using the given context and processes the
response using the given response handler.
|
T |
ResponseHandler.handleResponse(org.apache.http.HttpResponse response)
Processes an
HttpResponse and returns some value
corresponding to that response. |
Modifier and Type | Method and Description |
---|---|
Response |
Request.execute() |
Response |
Executor.execute(Request request)
Executes the request.
|
<T> T |
Response.handleResponse(ResponseHandler<T> handler)
Handles the response using the specified
ResponseHandler |
(package private) org.apache.http.HttpResponse |
Request.internalExecute(HttpClient client,
org.apache.http.protocol.HttpContext localContext) |
Content |
Response.returnContent() |
Modifier and Type | Method and Description |
---|---|
private static org.apache.http.HttpHost |
CloseableHttpClient.determineTarget(HttpUriRequest request) |
protected CloseableHttpResponse |
AbstractHttpClient.doExecute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context)
Deprecated.
|
protected abstract CloseableHttpResponse |
CloseableHttpClient.doExecute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context) |
protected CloseableHttpResponse |
MinimalHttpClient.doExecute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context) |
protected CloseableHttpResponse |
InternalHttpClient.doExecute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context) |
org.apache.http.HttpResponse |
DecompressingHttpClient.execute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request)
Deprecated.
|
CloseableHttpResponse |
CloseableHttpClient.execute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request)
Executes HTTP request using the default context.
|
org.apache.http.HttpResponse |
DecompressingHttpClient.execute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context)
Deprecated.
|
CloseableHttpResponse |
CloseableHttpClient.execute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context)
Executes HTTP request using the given context.
|
<T> T |
DecompressingHttpClient.execute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
ResponseHandler<? extends T> responseHandler)
Deprecated.
|
<T> T |
CloseableHttpClient.execute(org.apache.http.HttpHost target,
org.apache.http.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(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
ResponseHandler<? extends T> responseHandler,
org.apache.http.protocol.HttpContext context)
Deprecated.
|
<T> T |
CloseableHttpClient.execute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
ResponseHandler<? extends T> responseHandler,
org.apache.http.protocol.HttpContext context)
Executes a request using the default context and processes the
response using the given response handler.
|
org.apache.http.HttpResponse |
DecompressingHttpClient.execute(HttpUriRequest request)
Deprecated.
|
CloseableHttpResponse |
CloseableHttpClient.execute(HttpUriRequest request)
Executes HTTP request using the default context.
|
org.apache.http.HttpResponse |
DecompressingHttpClient.execute(HttpUriRequest request,
org.apache.http.protocol.HttpContext context)
Deprecated.
|
CloseableHttpResponse |
CloseableHttpClient.execute(HttpUriRequest request,
org.apache.http.protocol.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,
org.apache.http.protocol.HttpContext context)
Deprecated.
|
<T> T |
CloseableHttpClient.execute(HttpUriRequest request,
ResponseHandler<? extends T> responseHandler,
org.apache.http.protocol.HttpContext context)
Executes a request using the default context and processes the
response using the given response handler.
|
Modifier and Type | Method and Description |
---|---|
private org.apache.http.HttpResponse |
CachingHttpClient.handleCacheHit(org.apache.http.HttpHost target,
HttpRequestWrapper request,
org.apache.http.protocol.HttpContext context,
HttpCacheEntry entry)
Deprecated.
|
void |
RequestProtocolCompliance.makeRequestCompliant(HttpRequestWrapper request)
If the
HttpRequest is non-compliant but 'fixable' we go ahead and
fix the request here. |
private org.apache.http.HttpResponse |
CachingHttpClient.revalidateCacheEntry(org.apache.http.HttpHost target,
HttpRequestWrapper request,
org.apache.http.protocol.HttpContext context,
HttpCacheEntry entry,
java.util.Date now)
Deprecated.
|