@Contract(threading=IMMUTABLE) public class StandardHttpRequestRetryHandler extends DefaultHttpRequestRetryHandler
HttpRequestRetryHandler which assumes
that all requested HTTP methods which should be idempotent according
to RFC-2616 are in fact idempotent and can be retried.
According to RFC-2616 section 9.1.2 the idempotent HTTP methods are: GET, HEAD, PUT, DELETE, OPTIONS, and TRACE
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.String,java.lang.Boolean> |
idempotentMethods |
INSTANCE| Constructor and Description |
|---|
StandardHttpRequestRetryHandler()
Default constructor
|
StandardHttpRequestRetryHandler(int retryCount,
boolean requestSentRetryEnabled)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
handleAsIdempotent(org.apache.http.HttpRequest request) |
getRetryCount, isRequestSentRetryEnabled, requestIsAborted, retryRequestprivate final java.util.Map<java.lang.String,java.lang.Boolean> idempotentMethods
public StandardHttpRequestRetryHandler(int retryCount,
boolean requestSentRetryEnabled)
public StandardHttpRequestRetryHandler()
protected boolean handleAsIdempotent(org.apache.http.HttpRequest request)
handleAsIdempotent in class DefaultHttpRequestRetryHandler