org.jclouds.http.internal
Class JavaUrlHttpCommandExecutorService
java.lang.Object
org.jclouds.http.internal.BaseHttpCommandExecutorService<HttpURLConnection>
org.jclouds.http.internal.JavaUrlHttpCommandExecutorService
- All Implemented Interfaces:
- HttpCommandExecutorService
@Singleton
public class JavaUrlHttpCommandExecutorService
- extends BaseHttpCommandExecutorService<HttpURLConnection>
Basic implementation of a HttpCommandExecutorService.
- Author:
- Adrian Cole
|
Constructor Summary |
JavaUrlHttpCommandExecutorService(HttpUtils utils,
ContentMetadataCodec contentMetadataCodec,
com.google.common.util.concurrent.ListeningExecutorService ioExecutor,
DelegatingRetryHandler retryHandler,
IOExceptionRetryHandler ioRetryHandler,
DelegatingErrorHandler errorHandler,
HttpWire wire,
HostnameVerifier verifier,
com.google.common.base.Supplier<SSLContext> untrustedSSLContextProvider,
com.google.common.base.Function<URI,Proxy> proxyForURI)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_USER_AGENT
public static final String DEFAULT_USER_AGENT
JavaUrlHttpCommandExecutorService
@Inject
public JavaUrlHttpCommandExecutorService(HttpUtils utils,
ContentMetadataCodec contentMetadataCodec,
@Named(value="jclouds.io-worker-threads")
com.google.common.util.concurrent.ListeningExecutorService ioExecutor,
DelegatingRetryHandler retryHandler,
IOExceptionRetryHandler ioRetryHandler,
DelegatingErrorHandler errorHandler,
HttpWire wire,
@Named(value="untrusted")
HostnameVerifier verifier,
@Named(value="untrusted")
com.google.common.base.Supplier<SSLContext> untrustedSSLContextProvider,
com.google.common.base.Function<URI,Proxy> proxyForURI)
throws SecurityException,
NoSuchFieldException
- Throws:
SecurityException
NoSuchFieldException
invoke
protected HttpResponse invoke(HttpURLConnection connection)
throws IOException,
InterruptedException
- Specified by:
invoke in class BaseHttpCommandExecutorService<HttpURLConnection>
- Throws:
IOException
InterruptedException
convert
protected HttpURLConnection convert(HttpRequest request)
throws IOException,
InterruptedException
- Specified by:
convert in class BaseHttpCommandExecutorService<HttpURLConnection>
- Throws:
IOException
InterruptedException
writeNothing
protected void writeNothing(HttpURLConnection connection)
cleanup
protected void cleanup(HttpURLConnection connection)
- Specified by:
cleanup in class BaseHttpCommandExecutorService<HttpURLConnection>
Copyright © 2009-2013 jclouds. All Rights Reserved.