|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.httpclient.DefaultMethodRetryHandler
DefaultHttpMethodRetryHandler
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 retryCount and requestSentRetryEnabled to 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 MethodRetryHandler
MethodRetryHandler.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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |