org.jclouds.http.apachehc
Class ApacheHCHttpCommandExecutorService

java.lang.Object
  extended by org.jclouds.http.internal.BaseHttpCommandExecutorService<org.apache.http.client.methods.HttpUriRequest>
      extended by org.jclouds.http.apachehc.ApacheHCHttpCommandExecutorService
All Implemented Interfaces:
HttpCommandExecutorService

public class ApacheHCHttpCommandExecutorService
extends BaseHttpCommandExecutorService<org.apache.http.client.methods.HttpUriRequest>

Simple implementation of a HttpFutureCommandClient, Apache Components HttpClient 4.x.

Author:
Sam Tunnicliffe, Adrian Cole

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jclouds.http.internal.BaseHttpCommandExecutorService
BaseHttpCommandExecutorService.HttpResponseCallable
 
Field Summary
 
Fields inherited from class org.jclouds.http.internal.BaseHttpCommandExecutorService
headerLog, logger, utils, wire
 
Method Summary
protected  void cleanup(org.apache.http.client.methods.HttpUriRequest nativeResponse)
           
protected  org.apache.http.client.methods.HttpUriRequest convert(HttpRequest request)
           
protected  HttpResponse invoke(org.apache.http.client.methods.HttpUriRequest nativeRequest)
           
 
Methods inherited from class org.jclouds.http.internal.BaseHttpCommandExecutorService
consumeOnClose, submit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

convert

protected org.apache.http.client.methods.HttpUriRequest convert(HttpRequest request)
                                                         throws IOException
Specified by:
convert in class BaseHttpCommandExecutorService<org.apache.http.client.methods.HttpUriRequest>
Throws:
IOException

invoke

protected HttpResponse invoke(org.apache.http.client.methods.HttpUriRequest nativeRequest)
                       throws IOException
Specified by:
invoke in class BaseHttpCommandExecutorService<org.apache.http.client.methods.HttpUriRequest>
Throws:
IOException

cleanup

protected void cleanup(org.apache.http.client.methods.HttpUriRequest nativeResponse)
Specified by:
cleanup in class BaseHttpCommandExecutorService<org.apache.http.client.methods.HttpUriRequest>


Copyright © 2009-2011 jclouds. All Rights Reserved.