@Singleton public class JavaUrlHttpCommandExecutorService extends BaseHttpCommandExecutorService<HttpURLConnection>
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_USER_AGENT |
protected com.google.common.base.Function<URI,Proxy> |
proxyForURI |
protected com.google.common.base.Supplier<SSLContext> |
sslContextSupplier |
protected com.google.common.base.Supplier<SSLContext> |
untrustedSSLContextProvider |
protected HostnameVerifier |
verifier |
contentMetadataCodec, errorHandler, headerLog, ioRetryHandler, logger, retryHandler, utils, wire
Constructor and Description |
---|
JavaUrlHttpCommandExecutorService(HttpUtils utils,
ContentMetadataCodec contentMetadataCodec,
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,
String idempotentMethods) |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanup(HttpURLConnection connection) |
protected void |
configureRequestHeaders(HttpURLConnection connection,
HttpRequest request)
Configure the HTTP request headers in the connection.
|
protected HttpURLConnection |
convert(HttpRequest request) |
protected HttpURLConnection |
initConnection(HttpRequest request)
Creates and initializes the connection.
|
protected HttpResponse |
invoke(HttpURLConnection connection) |
protected void |
writeNothing(HttpURLConnection connection) |
invoke
public static final String DEFAULT_USER_AGENT
protected final com.google.common.base.Supplier<SSLContext> untrustedSSLContextProvider
protected final HostnameVerifier verifier
@Inject(optional=true) protected com.google.common.base.Supplier<SSLContext> sslContextSupplier
@Inject public JavaUrlHttpCommandExecutorService(HttpUtils utils, ContentMetadataCodec contentMetadataCodec, 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, @Named(value="jclouds.idempotent-methods") String idempotentMethods)
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 HttpURLConnection initConnection(HttpRequest request) throws IOException
IOException
protected void configureRequestHeaders(HttpURLConnection connection, HttpRequest request)
protected void writeNothing(HttpURLConnection connection)
protected void cleanup(HttpURLConnection connection)
cleanup
in class BaseHttpCommandExecutorService<HttpURLConnection>
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.