SMILA 1.0 API documentation

org.eclipse.smila.http.client.impl.failover
Class FailoverHttpRequestExecutor

java.lang.Object
  extended by org.eclipse.smila.http.client.impl.failover.FailoverHttpRequestExecutor
All Implemented Interfaces:
HttpRequestExecutor

public class FailoverHttpRequestExecutor
extends java.lang.Object
implements HttpRequestExecutor

request executor for the FailoverRestClient.


Constructor Summary
FailoverHttpRequestExecutor(java.util.List<java.lang.String> hostsAndPorts)
          create instance for given list of host-and-port strings.
 
Method Summary
 HttpResponse execute(HttpClient client, HttpUriRequest request)
          execute request.
 java.lang.String getHostAndPort()
          The host and port this executor is currently talking to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FailoverHttpRequestExecutor

public FailoverHttpRequestExecutor(java.util.List<java.lang.String> hostsAndPorts)
create instance for given list of host-and-port strings.

Method Detail

getHostAndPort

public java.lang.String getHostAndPort()
Description copied from interface: HttpRequestExecutor
The host and port this executor is currently talking to.

Specified by:
getHostAndPort in interface HttpRequestExecutor

execute

public HttpResponse execute(HttpClient client,
                            HttpUriRequest request)
                     throws java.io.IOException
Description copied from interface: HttpRequestExecutor
execute request.

Specified by:
execute in interface HttpRequestExecutor
Throws:
java.io.IOException

SMILA 1.0 API documentation