public class NoRetryHttpRequestRetryHandler extends Object implements org.apache.http.client.HttpRequestRetryHandler
Constructor and Description |
---|
NoRetryHttpRequestRetryHandler(Logger logger)
Constructs a new
NoRetryHttpRequestRetryHandler . |
Modifier and Type | Method and Description |
---|---|
boolean |
retryRequest(IOException e,
int i,
org.apache.http.protocol.HttpContext httpContext)
Log the IOException message (when logger at
LogLevel.DEBUG level) and return false for every request. |
public NoRetryHttpRequestRetryHandler(Logger logger)
NoRetryHttpRequestRetryHandler
.logger
- The Logger
to use when logging the exception message in retryRequest
public boolean retryRequest(IOException e, int i, org.apache.http.protocol.HttpContext httpContext)
LogLevel.DEBUG
level) and return false for every request.retryRequest
in interface org.apache.http.client.HttpRequestRetryHandler
e
- The IOException that triggered this retryRequesti
- The number of times this retryRequest has been calledhttpContext
- The HttpContext for this retryRequestCopyright © 2014 ForgeRock AS. All rights reserved.