|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.commons.httpclient.DefaultHttpMethodRetryHandler
public class DefaultHttpMethodRetryHandler
The default HttpMethodRetryHandler used by HttpMethods.
| Constructor Summary | |
|---|---|
DefaultHttpMethodRetryHandler()
Creates a new DefaultHttpMethodRetryHandler that retries up to 3 times but does not retry methods that have successfully sent their requests. |
|
DefaultHttpMethodRetryHandler(int retryCount,
boolean requestSentRetryEnabled)
Creates a new DefaultHttpMethodRetryHandler. |
|
| Method Summary | |
|---|---|
int |
getRetryCount()
|
boolean |
isRequestSentRetryEnabled()
|
boolean |
retryMethod(HttpMethod method,
IOException exception,
int executionCount)
Use retryCount and requestSentRetryEnabled to determine
if the given method should be retried. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultHttpMethodRetryHandler(int retryCount,
boolean requestSentRetryEnabled)
retryCount - the number of times a method will be retriedrequestSentRetryEnabled - if true, methods that have successfully sent their request will be retriedpublic DefaultHttpMethodRetryHandler()
| Method Detail |
|---|
public boolean retryMethod(HttpMethod method,
IOException exception,
int executionCount)
retryCount and requestSentRetryEnabled to determine
if the given method should be retried.
If the method has not been aborted, true is returned for
all IOExceptions except for instances of:
retryMethod in interface HttpMethodRetryHandlermethod - the method being executedexception - the exception that occurredexecutionCount - the number of times this method has been
unsuccessfully executed
true if the method should be retried, false
otherwiseHttpMethodRetryHandler.retryMethod(HttpMethod, IOException, int)public boolean isRequestSentRetryEnabled()
true if this handler will retry methods that have
successfully sent their request, false otherwisepublic int getRetryCount()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||