Package com.intuit.karate.http
Class CustomHttpRequestRetryHandler
- java.lang.Object
-
- com.intuit.karate.http.CustomHttpRequestRetryHandler
-
- All Implemented Interfaces:
org.apache.http.client.HttpRequestRetryHandler
public class CustomHttpRequestRetryHandler extends Object implements org.apache.http.client.HttpRequestRetryHandler
Calls will retry the call when the client throws a NoHttpResponseException. This is usually the case when there is steal connection. The retry cause that the connection is renewed and the second call will succeed.
-
-
Constructor Summary
Constructors Constructor Description CustomHttpRequestRetryHandler(Logger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanretryRequest(IOException exception, int executionCount, org.apache.http.protocol.HttpContext context)
-
-
-
Constructor Detail
-
CustomHttpRequestRetryHandler
public CustomHttpRequestRetryHandler(Logger logger)
-
-
Method Detail
-
retryRequest
public boolean retryRequest(IOException exception, int executionCount, org.apache.http.protocol.HttpContext context)
- Specified by:
retryRequestin interfaceorg.apache.http.client.HttpRequestRetryHandler
-
-