org.jclouds.gae
Class GaeHttpCommandExecutorService

java.lang.Object
  extended by org.jclouds.http.internal.BaseHttpCommandExecutorService<com.google.appengine.api.urlfetch.HTTPRequest>
      extended by org.jclouds.gae.GaeHttpCommandExecutorService
All Implemented Interfaces:
HttpCommandExecutorService

@Singleton
public class GaeHttpCommandExecutorService
extends BaseHttpCommandExecutorService<com.google.appengine.api.urlfetch.HTTPRequest>

Google App Engine version of HttpCommandExecutorService

Author:
Adrian Cole

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jclouds.http.internal.BaseHttpCommandExecutorService
BaseHttpCommandExecutorService.HttpResponseCallable
 
Field Summary
static String USER_AGENT
           
 
Fields inherited from class org.jclouds.http.internal.BaseHttpCommandExecutorService
headerLog, logger, utils, wire
 
Constructor Summary
GaeHttpCommandExecutorService(com.google.appengine.api.urlfetch.URLFetchService urlFetchService, HttpUtils utils, ExecutorService ioExecutor, IOExceptionRetryHandler ioRetryHandler, DelegatingRetryHandler retryHandler, DelegatingErrorHandler errorHandler, HttpWire wire, ConvertToGaeRequest convertToGaeRequest, ConvertToJcloudsResponse convertToJcloudsResponse)
           
 
Method Summary
protected  void cleanup(com.google.appengine.api.urlfetch.HTTPRequest nativeRequest)
          nothing to clean up.
protected  com.google.appengine.api.urlfetch.HTTPRequest convert(HttpRequest request)
           
protected  HttpResponse convert(com.google.appengine.api.urlfetch.HTTPResponse gaeResponse)
           
protected  HttpResponse invoke(com.google.appengine.api.urlfetch.HTTPRequest request)
           
 
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
 

Field Detail

USER_AGENT

public static final String USER_AGENT
See Also:
Constant Field Values
Constructor Detail

GaeHttpCommandExecutorService

@Inject
public GaeHttpCommandExecutorService(com.google.appengine.api.urlfetch.URLFetchService urlFetchService,
                                            HttpUtils utils,
                                            @Named(value="jclouds.io-worker-threads")
                                            ExecutorService ioExecutor,
                                            IOExceptionRetryHandler ioRetryHandler,
                                            DelegatingRetryHandler retryHandler,
                                            DelegatingErrorHandler errorHandler,
                                            HttpWire wire,
                                            ConvertToGaeRequest convertToGaeRequest,
                                            ConvertToJcloudsResponse convertToJcloudsResponse)
Method Detail

convert

protected HttpResponse convert(com.google.appengine.api.urlfetch.HTTPResponse gaeResponse)

convert

protected com.google.appengine.api.urlfetch.HTTPRequest convert(HttpRequest request)
                                                         throws IOException
Specified by:
convert in class BaseHttpCommandExecutorService<com.google.appengine.api.urlfetch.HTTPRequest>
Throws:
IOException

cleanup

protected void cleanup(com.google.appengine.api.urlfetch.HTTPRequest nativeRequest)
nothing to clean up.

Specified by:
cleanup in class BaseHttpCommandExecutorService<com.google.appengine.api.urlfetch.HTTPRequest>

invoke

protected HttpResponse invoke(com.google.appengine.api.urlfetch.HTTPRequest request)
                       throws IOException
Specified by:
invoke in class BaseHttpCommandExecutorService<com.google.appengine.api.urlfetch.HTTPRequest>
Throws:
IOException


Copyright © 2009-2011 jclouds. All Rights Reserved.