java.lang.Object
edu.internet2.middleware.grouperClientExt.org.apache.commons.httpclient.DefaultMethodRetryHandler
All Implemented Interfaces:
MethodRetryHandler

public class DefaultMethodRetryHandler extends Object implements MethodRetryHandler
The default MethodRetryHandler used by HttpMethodBase.
See Also:
  • Constructor Details

    • DefaultMethodRetryHandler

      public DefaultMethodRetryHandler()
      Deprecated.
  • Method Details

    • retryMethod

      public 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.
      Specified by:
      retryMethod in interface MethodRetryHandler
      Parameters:
      method - the method being executed
      connection - the connection the method is using
      recoverableException - the exception that occurred
      executionCount - the number of times this method has been unsuccessfully executed
      requestSent - this argument is unused and will be removed in the future. HttpMethod.isRequestSent() should be used instead
      Returns:
      true if the method should be retried, false otherwise
      See Also:
    • isRequestSentRetryEnabled

      public boolean isRequestSentRetryEnabled()
      Deprecated.
      Returns:
      true if this handler will retry methods that have successfully sent their request, false otherwise
    • getRetryCount

      public int getRetryCount()
      Deprecated.
      Returns:
      the maximum number of times a method will be retried
    • setRequestSentRetryEnabled

      public void setRequestSentRetryEnabled(boolean requestSentRetryEnabled)
      Deprecated.
      Parameters:
      requestSentRetryEnabled - a flag indicating if methods that have successfully sent their request should be retried
    • setRetryCount

      public void setRetryCount(int retryCount)
      Deprecated.
      Parameters:
      retryCount - the maximum number of times a method can be retried