@Singleton public class JavaUrlHttpCommandExecutorService extends BaseHttpCommandExecutorService<HttpURLConnection>
HttpCommandExecutorService
.BaseHttpCommandExecutorService.HttpResponseCallable
Modifier and Type | Field and Description |
---|---|
protected Logger |
logger |
static String |
USER_AGENT |
headerLog, utils, wire
Constructor and Description |
---|
JavaUrlHttpCommandExecutorService(HttpUtils utils,
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)
Only disconnect if there is no content, as disconnecting will throw away unconsumed content.
|
protected HttpURLConnection |
convert(HttpRequest request) |
protected HttpResponse |
invoke(HttpURLConnection connection) |
consumeOnClose, submit
@Inject public JavaUrlHttpCommandExecutorService(HttpUtils utils, @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-2012 jclouds. All Rights Reserved.