org.apache.commons.httpclient
Class DefaultHttpMethodRetryHandler
java.lang.Object
|
+--org.apache.commons.httpclient.DefaultHttpMethodRetryHandler
- All Implemented Interfaces:
- HttpMethodRetryHandler
- public class DefaultHttpMethodRetryHandler
- extends Object
- implements HttpMethodRetryHandler
The default HttpMethodRetryHandler
used by HttpMethod
s.
- Author:
- Michael Becke, Oleg Kalnichevski
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultHttpMethodRetryHandler
public DefaultHttpMethodRetryHandler(int retryCount,
boolean requestSentRetryEnabled)
- Default constructor
DefaultHttpMethodRetryHandler
public DefaultHttpMethodRetryHandler()
- Default constructor
static void ()
retryMethod
public boolean retryMethod(HttpMethod method,
IOException exception,
int executionCount)
- Used
retryCount
and requestSentRetryEnabled
to determine
if the given method should be retried.
- Specified by:
retryMethod
in interface HttpMethodRetryHandler
- See Also:
HttpMethodRetryHandler.retryMethod(HttpMethod, IOException, int)
isRequestSentRetryEnabled
public boolean isRequestSentRetryEnabled()
- Returns:
true
if this handler will retry methods that have
successfully sent their request, false
otherwise
getRetryCount
public int getRetryCount()
- Returns:
- the maximum number of times a method will be retried
Copyright © 2001-2004 Apache Software Foundation. All Rights Reserved.