@Singleton public class JavaUrlHttpCommandExecutorService extends BaseHttpCommandExecutorService<HttpURLConnection>
HttpCommandExecutorService.BaseHttpCommandExecutorService.HttpResponseCallable| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_USER_AGENT |
contentMetadataCodec, errorHandler, headerLog, ioExecutor, ioRetryHandler, logger, retryHandler, utils, wire| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanup(HttpURLConnection connection) |
protected HttpURLConnection |
convert(HttpRequest request) |
protected HttpResponse |
invoke(HttpURLConnection connection) |
protected void |
writeNothing(HttpURLConnection connection) |
consumeOnClose, invoke, submitpublic static final String DEFAULT_USER_AGENT
@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
protected HttpResponse invoke(HttpURLConnection connection) throws IOException, InterruptedException
invoke in class BaseHttpCommandExecutorService<HttpURLConnection>IOExceptionInterruptedExceptionprotected HttpURLConnection convert(HttpRequest request) throws IOException, InterruptedException
convert in class BaseHttpCommandExecutorService<HttpURLConnection>IOExceptionInterruptedExceptionprotected void writeNothing(HttpURLConnection connection)
protected void cleanup(HttpURLConnection connection)
cleanup in class BaseHttpCommandExecutorService<HttpURLConnection>Copyright © 2009-2013 jclouds. All Rights Reserved.