HttpClientBuilder.@Deprecated
@Contract(threading=SAFE_CONDITIONAL)
public class AutoRetryHttpClient
extends java.lang.Object
implements org.apache.http.client.HttpClient
HttpClient implementation that can automatically retry the request in case of
a non-2xx response using the ServiceUnavailableRetryStrategy interface.| Constructor and Description |
|---|
AutoRetryHttpClient()
Deprecated.
Constructs a
AutoRetryHttpClient with default caching settings that
stores cache entries in memory and uses a vanilla
DefaultHttpClient for backend requests. |
AutoRetryHttpClient(org.apache.http.client.HttpClient client)
Deprecated.
Constructs a
AutoRetryHttpClient with default caching settings that
stores cache entries in memory and uses the given HttpClient for
backend requests. |
AutoRetryHttpClient(org.apache.http.client.HttpClient client,
org.apache.http.client.ServiceUnavailableRetryStrategy retryStrategy)
Deprecated.
|
AutoRetryHttpClient(org.apache.http.client.ServiceUnavailableRetryStrategy config)
Deprecated.
Constructs a
AutoRetryHttpClient with the given caching options that
stores cache entries in memory and uses a vanilla
DefaultHttpClient for backend requests. |
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
execute(HttpHost target,
HttpRequest request)
Deprecated.
|
HttpResponse |
execute(HttpHost target,
HttpRequest request,
org.apache.http.protocol.HttpContext context)
Deprecated.
|
<T> T |
execute(HttpHost target,
HttpRequest request,
org.apache.http.client.ResponseHandler<? extends T> responseHandler)
Deprecated.
|
<T> T |
execute(HttpHost target,
HttpRequest request,
org.apache.http.client.ResponseHandler<? extends T> responseHandler,
org.apache.http.protocol.HttpContext context)
Deprecated.
|
HttpResponse |
execute(HttpUriRequest request)
Deprecated.
|
HttpResponse |
execute(HttpUriRequest request,
org.apache.http.protocol.HttpContext context)
Deprecated.
|
<T> T |
execute(HttpUriRequest request,
org.apache.http.client.ResponseHandler<? extends T> responseHandler)
Deprecated.
|
<T> T |
execute(HttpUriRequest request,
org.apache.http.client.ResponseHandler<? extends T> responseHandler,
org.apache.http.protocol.HttpContext context)
Deprecated.
|
org.apache.http.conn.ClientConnectionManager |
getConnectionManager()
Deprecated.
|
org.apache.http.params.HttpParams |
getParams()
Deprecated.
|
public AutoRetryHttpClient(org.apache.http.client.HttpClient client,
org.apache.http.client.ServiceUnavailableRetryStrategy retryStrategy)
public AutoRetryHttpClient()
AutoRetryHttpClient with default caching settings that
stores cache entries in memory and uses a vanilla
DefaultHttpClient for backend requests.public AutoRetryHttpClient(org.apache.http.client.ServiceUnavailableRetryStrategy config)
AutoRetryHttpClient with the given caching options that
stores cache entries in memory and uses a vanilla
DefaultHttpClient for backend requests.config - retry configuration module optionspublic AutoRetryHttpClient(org.apache.http.client.HttpClient client)
AutoRetryHttpClient with default caching settings that
stores cache entries in memory and uses the given HttpClient for
backend requests.client - used to make origin requestspublic HttpResponse execute(HttpHost target, HttpRequest request) throws java.io.IOException
execute in interface org.apache.http.client.HttpClientjava.io.IOExceptionpublic <T> T execute(HttpHost target, HttpRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler) throws java.io.IOException
execute in interface org.apache.http.client.HttpClientjava.io.IOExceptionpublic <T> T execute(HttpHost target, HttpRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler, org.apache.http.protocol.HttpContext context) throws java.io.IOException
execute in interface org.apache.http.client.HttpClientjava.io.IOExceptionpublic HttpResponse execute(HttpUriRequest request) throws java.io.IOException
execute in interface org.apache.http.client.HttpClientjava.io.IOExceptionpublic HttpResponse execute(HttpUriRequest request, org.apache.http.protocol.HttpContext context) throws java.io.IOException
execute in interface org.apache.http.client.HttpClientjava.io.IOExceptionpublic <T> T execute(HttpUriRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler) throws java.io.IOException
execute in interface org.apache.http.client.HttpClientjava.io.IOExceptionpublic <T> T execute(HttpUriRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler, org.apache.http.protocol.HttpContext context) throws java.io.IOException
execute in interface org.apache.http.client.HttpClientjava.io.IOExceptionpublic HttpResponse execute(HttpHost target, HttpRequest request, org.apache.http.protocol.HttpContext context) throws java.io.IOException
execute in interface org.apache.http.client.HttpClientjava.io.IOExceptionpublic org.apache.http.conn.ClientConnectionManager getConnectionManager()
getConnectionManager in interface org.apache.http.client.HttpClientpublic org.apache.http.params.HttpParams getParams()
getParams in interface org.apache.http.client.HttpClient