org.apache.commons.httpclient
public class DefaultMethodRetryHandler extends Object implements MethodRetryHandler
Deprecated: use {@link org.apache.commons.httpclient.DefaultHttpMethodRetryHandler}
The default MethodRetryHandler used by HttpMethodBase.Constructor Summary | |
---|---|
DefaultMethodRetryHandler() |
Method Summary | |
---|---|
int | getRetryCount() |
boolean | isRequestSentRetryEnabled() |
boolean | retryMethod(HttpMethod method, HttpConnection connection, HttpRecoverableException recoverableException, int executionCount, boolean requestSent)
Used retryCount and requestSentRetryEnabled to determine
if the given method should be retried.
|
void | setRequestSentRetryEnabled(boolean requestSentRetryEnabled) |
void | setRetryCount(int retryCount) |
Returns: the maximum number of times a method will be retried
Returns: true
if this handler will retry methods that have
successfully sent their request, false
otherwise
retryCount
and requestSentRetryEnabled
to determine
if the given method should be retried.
See Also: MethodRetryHandler
Parameters: requestSentRetryEnabled a flag indicating if methods that have successfully sent their request should be retried
Parameters: retryCount the maximum number of times a method can be retried