@Singleton public class JavaUrlHttpCommandExecutorService extends BaseHttpCommandExecutorService<HttpURLConnection>
HttpCommandExecutorService
.BaseHttpCommandExecutorService.HttpResponseCallable
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_USER_AGENT |
protected Logger |
logger |
contentMetadataCodec, headerLog, utils, wire
Constructor and Description |
---|
JavaUrlHttpCommandExecutorService(HttpUtils utils,
ContentMetadataCodec contentMetadataCodec,
ExecutorService ioWorkerExecutor,
DelegatingRetryHandler retryHandler,
IOExceptionRetryHandler ioRetryHandler,
DelegatingErrorHandler errorHandler,
HttpWire wire,
HostnameVerifier verifier,
com.google.common.base.Supplier<SSLContext> untrustedSSLContextProvider) |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanup(HttpURLConnection connection) |
protected HttpURLConnection |
convert(HttpRequest request) |
protected HttpResponse |
invoke(HttpURLConnection connection) |
consumeOnClose, submit
public static final String DEFAULT_USER_AGENT
protected Logger logger
@Inject public JavaUrlHttpCommandExecutorService(HttpUtils utils, ContentMetadataCodec contentMetadataCodec, @Named(value="jclouds.io-worker-threads") ExecutorService ioWorkerExecutor, DelegatingRetryHandler retryHandler, IOExceptionRetryHandler ioRetryHandler, DelegatingErrorHandler errorHandler, HttpWire wire, @Named(value="untrusted") HostnameVerifier verifier, @Named(value="untrusted") com.google.common.base.Supplier<SSLContext> untrustedSSLContextProvider) throws SecurityException, NoSuchFieldException
protected HttpResponse invoke(HttpURLConnection connection) throws IOException, InterruptedException
invoke
in class BaseHttpCommandExecutorService<HttpURLConnection>
IOException
InterruptedException
protected HttpURLConnection convert(HttpRequest request) throws IOException, InterruptedException
convert
in class BaseHttpCommandExecutorService<HttpURLConnection>
IOException
InterruptedException
protected void cleanup(HttpURLConnection connection)
cleanup
in class BaseHttpCommandExecutorService<HttpURLConnection>
Copyright © 2009-2013 jclouds. All Rights Reserved.