Package org.apache.commons.httpclient
Class DefaultHttpMethodRetryHandler
- java.lang.Object
 - 
- org.apache.commons.httpclient.DefaultHttpMethodRetryHandler
 
 
- 
- All Implemented Interfaces:
 HttpMethodRetryHandler
@Deprecated public class DefaultHttpMethodRetryHandler extends java.lang.Object implements HttpMethodRetryHandler
Deprecated.Jakarta Commons HttpClient 3.x is deprecated in the Jenkins project. It is not recommended to use it in any new code. Instead, use HTTP client API plugins as a dependency in your code. E.g. Apache HttpComponents Client API 4.x Plugin or Async HTTP Client Plugin.The defaultHttpMethodRetryHandlerused byHttpMethods. 
- 
- 
Constructor Summary
Constructors Constructor Description DefaultHttpMethodRetryHandler()Deprecated.Creates a new DefaultHttpMethodRetryHandler that retries up to 3 times but does not retry methods that have successfully sent their requests.DefaultHttpMethodRetryHandler(int retryCount, boolean requestSentRetryEnabled)Deprecated.Creates a new DefaultHttpMethodRetryHandler. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intgetRetryCount()Deprecated.booleanisRequestSentRetryEnabled()Deprecated.booleanretryMethod(HttpMethod method, java.io.IOException exception, int executionCount)Deprecated.UsedretryCountandrequestSentRetryEnabledto determine if the given method should be retried. 
 - 
 
- 
- 
Constructor Detail
- 
DefaultHttpMethodRetryHandler
public DefaultHttpMethodRetryHandler(int retryCount, boolean requestSentRetryEnabled)Deprecated.Creates a new DefaultHttpMethodRetryHandler.- Parameters:
 retryCount- the number of times a method will be retriedrequestSentRetryEnabled- if true, methods that have successfully sent their request will be retried
 
- 
DefaultHttpMethodRetryHandler
public DefaultHttpMethodRetryHandler()
Deprecated.Creates a new DefaultHttpMethodRetryHandler that retries up to 3 times but does not retry methods that have successfully sent their requests. 
 - 
 
- 
Method Detail
- 
retryMethod
public boolean retryMethod(HttpMethod method, java.io.IOException exception, int executionCount)
Deprecated.UsedretryCountandrequestSentRetryEnabledto determine if the given method should be retried.- Specified by:
 retryMethodin interfaceHttpMethodRetryHandler- Parameters:
 method- the method being executedexception- the exception that occurredexecutionCount- the number of times this method has been unsuccessfully executed- Returns:
 trueif the method should be retried,falseotherwise- See Also:
 HttpMethodRetryHandler.retryMethod(HttpMethod, IOException, int)
 
- 
isRequestSentRetryEnabled
public boolean isRequestSentRetryEnabled()
Deprecated.- Returns:
 trueif this handler will retry methods that have successfully sent their request,falseotherwise
 
- 
getRetryCount
public int getRetryCount()
Deprecated.- Returns:
 - the maximum number of times a method will be retried
 
 
 - 
 
 -