org.jclouds.gae
Class GaeHttpCommandExecutorService
java.lang.Object
org.jclouds.http.internal.BaseHttpCommandExecutorService<com.google.appengine.api.urlfetch.HTTPRequest>
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
USER_AGENT
public static final String USER_AGENT
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)
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-2012 jclouds. All Rights Reserved.