Top Description Fields Constructors Methods
org.apache.http.impl.client

public Class StandardHttpRequestRetryHandler

extends DefaultHttpRequestRetryHandler
Class Inheritance
Annotations
@Contract
threading:IMMUTABLE
Imports
java.util.Locale, .Map, java.util.concurrent.ConcurrentHashMap, org.apache.http.HttpRequest, org.apache.http.annotation.Contract, .ThreadingBehavior

org.apache.http.client.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

Since
4.2

Field Summary

Modifier and TypeField and Description
private final Map<String, Boolean>
Inherited from org.apache.http.impl.client.DefaultHttpRequestRetryHandler:
INSTANCE

Constructor Summary

AccessConstructor and Description
public
StandardHttpRequestRetryHandler(final int retryCount, final boolean requestSentRetryEnabled)

Default constructor

public
StandardHttpRequestRetryHandler()

Default constructor

Method Summary

Modifier and TypeMethod and Description
protected boolean
Inherited from org.apache.http.impl.client.DefaultHttpRequestRetryHandler:
getRetryCountisRequestSentRetryEnabledrequestIsAbortedretryRequest

Field Detail

idempotentMethodsback to summary
private final Map<String, Boolean> idempotentMethods

Constructor Detail

StandardHttpRequestRetryHandlerback to summary
public StandardHttpRequestRetryHandler(final int retryCount, final boolean requestSentRetryEnabled)

Default constructor

StandardHttpRequestRetryHandlerback to summary
public StandardHttpRequestRetryHandler()

Default constructor

Method Detail

handleAsIdempotentback to summary
protected boolean handleAsIdempotent(final HttpRequest request)

Overrides org.apache.http.impl.client.DefaultHttpRequestRetryHandler.handleAsIdempotent.

Annotations
@Override