org.apache.commons.httpclient
Class DefaultHttpMethodRetryHandler
java.lang.Object
org.apache.commons.httpclient.DefaultHttpMethodRetryHandler
- HttpMethodRetryHandler
public class DefaultHttpMethodRetryHandler
extends java.lang.Object
DefaultHttpMethodRetryHandler
public DefaultHttpMethodRetryHandler()
Default constructor
DefaultHttpMethodRetryHandler
public DefaultHttpMethodRetryHandler(int retryCount,
boolean requestSentRetryEnabled)
Default constructor
getRetryCount
public int getRetryCount()
- the maximum number of times a method will be retried
isRequestSentRetryEnabled
public boolean isRequestSentRetryEnabled()
true
if this handler will retry methods that have
successfully sent their request, false
otherwise
retryMethod
public boolean retryMethod(HttpMethod method,
IOException exception,
int executionCount)
Used retryCount
and requestSentRetryEnabled
to determine
if the given method should be retried.
- retryMethod in interface HttpMethodRetryHandler
Copyright (c) 1999-2005 - Apache Software Foundation