org.apache.commons.httpclient
Interface MethodRetryHandler
- All Known Implementing Classes:
- DefaultMethodRetryHandler
- public interface MethodRetryHandler
A handler for determining if an HttpMethod should be retried after a
recoverable exception during execution.
- Author:
- Michael Becke
- See Also:
HttpMethod.execute(HttpState, HttpConnection)
,
HttpRecoverableException
retryMethod
public boolean retryMethod(HttpMethod method,
HttpConnection connection,
HttpRecoverableException recoverableException,
int executionCount,
boolean requestSent)
- Determines if a method should be retried after an HttpRecoverableException
occurs during execution.
- Parameters:
method
- the method being executedconnection
- the connection the method is usingrecoverableException
- the exception that occurredexecutionCount
- the number of times this method has been
unsuccessfully executedrequestSent
- a flag indicating if the request has been fully sent or not- Returns:
true
if the method should be retried, false
otherwise
Copyright © 2001-2004 Apache Software Foundation. All Rights Reserved.