| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.httpclient.DefaultMethodRetryHandler
DefaultHttpMethodRetryHandler
public class DefaultMethodRetryHandler
The default MethodRetryHandler used by HttpMethodBase.
HttpMethodBase.setMethodRetryHandler(MethodRetryHandler)| Constructor Summary | |
|---|---|
| DefaultMethodRetryHandler()Deprecated. | |
| Method Summary | |
|---|---|
|  int | getRetryCount()Deprecated. | 
|  boolean | isRequestSentRetryEnabled()Deprecated. | 
|  boolean | retryMethod(HttpMethod method,
            HttpConnection connection,
            HttpRecoverableException recoverableException,
            int executionCount,
            boolean requestSent)Deprecated. Used retryCountandrequestSentRetryEnabledto determine
 if the given method should be retried. | 
|  void | setRequestSentRetryEnabled(boolean requestSentRetryEnabled)Deprecated. | 
|  void | setRetryCount(int retryCount)Deprecated. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public DefaultMethodRetryHandler()
| Method Detail | 
|---|
public boolean retryMethod(HttpMethod method,
                           HttpConnection connection,
                           HttpRecoverableException recoverableException,
                           int executionCount,
                           boolean requestSent)
retryCount and requestSentRetryEnabled to determine
 if the given method should be retried.
retryMethod in interface MethodRetryHandlermethod - the method being executedconnection - the connection the method is usingrecoverableException - the exception that occurredexecutionCount - the number of times this method has been 
 unsuccessfully executedrequestSent - this argument is unused and will be removed in the future. 
   HttpMethod.isRequestSent() should be used instead
true if the method should be retried, false
 otherwiseMethodRetryHandler.retryMethod(HttpMethod, HttpConnection, HttpRecoverableException, int, boolean)public boolean isRequestSentRetryEnabled()
true if this handler will retry methods that have 
 successfully sent their request, false otherwisepublic int getRetryCount()
public void setRequestSentRetryEnabled(boolean requestSentRetryEnabled)
requestSentRetryEnabled - a flag indicating if methods that have 
 successfully sent their request should be retriedpublic void setRetryCount(int retryCount)
retryCount - the maximum number of times a method can be retried| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||