org.apache.http.impl.execchain
Class ServiceUnavailableRetryExec

java.lang.Object
  extended by org.apache.http.impl.execchain.ServiceUnavailableRetryExec
All Implemented Interfaces:
ClientExecChain

@Immutable
public class ServiceUnavailableRetryExec
extends Object
implements ClientExecChain

ClientExecChain implementation that can automatically retry the request in case of a non-2xx response using the ServiceUnavailableRetryStrategy interface.

Since:
4.3

Constructor Summary
ServiceUnavailableRetryExec(ClientExecChain requestExecutor, ServiceUnavailableRetryStrategy retryStrategy)
           
 
Method Summary
 CloseableHttpResponse execute(HttpRoute route, HttpRequestWrapper request, HttpClientContext context, HttpExecutionAware execAware)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceUnavailableRetryExec

public ServiceUnavailableRetryExec(ClientExecChain requestExecutor,
                                   ServiceUnavailableRetryStrategy retryStrategy)
Method Detail

execute

public CloseableHttpResponse execute(HttpRoute route,
                                     HttpRequestWrapper request,
                                     HttpClientContext context,
                                     HttpExecutionAware execAware)
                              throws IOException,
                                     HttpException
Specified by:
execute in interface ClientExecChain
Throws:
IOException
HttpException


Copyright © 1999-2013 The Apache Software Foundation. All Rights Reserved.