Package org.jclouds.http.internal
Class JavaUrlHttpCommandExecutorService
java.lang.Object
org.jclouds.http.internal.BaseHttpCommandExecutorService<HttpURLConnection>
org.jclouds.http.internal.JavaUrlHttpCommandExecutorService
- All Implemented Interfaces:
HttpCommandExecutorService
- Direct Known Subclasses:
ResponseStatusFromPayloadHttpCommandExecutorService
@Singleton
public class JavaUrlHttpCommandExecutorService
extends BaseHttpCommandExecutorService<HttpURLConnection>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final int
protected com.google.common.base.Supplier
<SSLContext> protected final com.google.common.base.Supplier
<SSLContext> protected final String
protected final HostnameVerifier
Fields inherited from class org.jclouds.http.internal.BaseHttpCommandExecutorService
contentMetadataCodec, errorHandler, headerLog, ioRetryHandler, logger, retryHandler, utils, wire
-
Constructor Summary
ConstructorsConstructorDescriptionJavaUrlHttpCommandExecutorService
(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, int outputSocketBufferSize, String userAgent) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) Methods inherited from class org.jclouds.http.internal.BaseHttpCommandExecutorService
invoke
-
Field Details
-
untrustedSSLContextProvider
-
proxyForURI
-
verifier
-
sslContextSupplier
-
outputSocketBufferSize
protected final int outputSocketBufferSize -
userAgent
-
-
Constructor Details
-
JavaUrlHttpCommandExecutorService
@Inject public JavaUrlHttpCommandExecutorService(HttpUtils utils, ContentMetadataCodec contentMetadataCodec, DelegatingRetryHandler retryHandler, IOExceptionRetryHandler ioRetryHandler, DelegatingErrorHandler errorHandler, HttpWire wire, @Named("untrusted") HostnameVerifier verifier, @Named("untrusted") com.google.common.base.Supplier<SSLContext> untrustedSSLContextProvider, com.google.common.base.Function<URI, Proxy> proxyForURI, @Named("jclouds.idempotent-methods") String idempotentMethods, @Named("jclouds.output-socket-buffer-size") int outputSocketBufferSize, @Named("jclouds.user-agent") String userAgent)
-
-
Method Details
-
invoke
protected HttpResponse invoke(HttpURLConnection connection) throws IOException, InterruptedException - Specified by:
invoke
in classBaseHttpCommandExecutorService<HttpURLConnection>
- Throws:
IOException
InterruptedException
-
convert
- Specified by:
convert
in classBaseHttpCommandExecutorService<HttpURLConnection>
- Throws:
IOException
InterruptedException
-
initConnection
Creates and initializes the connection.- Throws:
IOException
-
configureRequestHeaders
Configure the HTTP request headers in the connection. -
writeNothing
-
cleanup
- Specified by:
cleanup
in classBaseHttpCommandExecutorService<HttpURLConnection>
-