org.apache.commons.httpclient

Class DefaultMethodRetryHandler

public class DefaultMethodRetryHandler extends Object implements MethodRetryHandler

Deprecated: use {@link org.apache.commons.httpclient.DefaultHttpMethodRetryHandler}

The default MethodRetryHandler used by HttpMethodBase.

Author: Michael Becke

See Also:

Constructor Summary
DefaultMethodRetryHandler()
Method Summary
intgetRetryCount()
booleanisRequestSentRetryEnabled()
booleanretryMethod(HttpMethod method, HttpConnection connection, HttpRecoverableException recoverableException, int executionCount, boolean requestSent)
Used retryCount and requestSentRetryEnabled to determine if the given method should be retried.
voidsetRequestSentRetryEnabled(boolean requestSentRetryEnabled)
voidsetRetryCount(int retryCount)

Constructor Detail

DefaultMethodRetryHandler

public DefaultMethodRetryHandler()

Method Detail

getRetryCount

public int getRetryCount()

Returns: the maximum number of times a method will be retried

isRequestSentRetryEnabled

public boolean isRequestSentRetryEnabled()

Returns: true if this handler will retry methods that have successfully sent their request, false otherwise

retryMethod

public boolean retryMethod(HttpMethod method, HttpConnection connection, HttpRecoverableException recoverableException, int executionCount, boolean requestSent)
Used retryCount and requestSentRetryEnabled to determine if the given method should be retried.

See Also: MethodRetryHandler

setRequestSentRetryEnabled

public void setRequestSentRetryEnabled(boolean requestSentRetryEnabled)

Parameters: requestSentRetryEnabled a flag indicating if methods that have successfully sent their request should be retried

setRetryCount

public void setRetryCount(int retryCount)

Parameters: retryCount the maximum number of times a method can be retried

Copyright (c) 1999-2005 - Apache Software Foundation