HttpMethodRetryHandler (HttpClient 3.1 API)
Keywords: org.apache.commons.httpclient.HttpMethodRetryHandler interface

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.commons.httpclient
Interface HttpMethodRetryHandler

All Known Implementing Classes:
  DefaultHttpMethodRetryHandler

    public interface HttpMethodRetryHandler

A handler for determining if an HttpMethod should be retried after a recoverable exception during execution.

Classes implementing this interface must synchronize access to shared data as methods of this interfrace may be executed from multiple threads

Author:
  Michael Becke, Oleg Kalnichevski
See Also:
  `HttpMethod.execute(HttpState, HttpConnection)`

Method Summary
`boolean` | `retryMethod(HttpMethod method, IOException exception, int executionCount)` Determines if a method should be retried after an HttpRecoverableException occurs during execution.

Method Detail

### retryMethod

    boolean retryMethod(HttpMethod method,
                        IOException exception,
                        int executionCount)

  Determines if a method should be retried after an HttpRecoverableException occurs during execution.

  Parameters:
    `method` - the method being executed
    `exception` - the exception that occurred
    `executionCount` - the number of times this method has been unsuccessfully executed
  Returns:
    `true` if the method should be retried, `false` otherwise

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.