SMILA 1.0 API documentation

org.eclipse.smila.http.client.impl
Class DefaultHttpRequestExecutor

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

public class DefaultHttpRequestExecutor
extends java.lang.Object
implements HttpRequestExecutor

implementation used by DefaultRestClient.


Constructor Summary
DefaultHttpRequestExecutor(java.lang.String hostAndPort)
          create instance.
 
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

DefaultHttpRequestExecutor

public DefaultHttpRequestExecutor(java.lang.String hostAndPort)
create instance.

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