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 intprotected com.google.common.base.Supplier<SSLContext> protected final com.google.common.base.Supplier<SSLContext> protected final Stringprotected final HostnameVerifierFields 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 voidcleanup(HttpURLConnection connection) protected voidconfigureRequestHeaders(HttpURLConnection connection, HttpRequest request) Configure the HTTP request headers in the connection.protected HttpURLConnectionconvert(HttpRequest request) protected HttpURLConnectioninitConnection(HttpRequest request) Creates and initializes the connection.protected HttpResponseinvoke(HttpURLConnection connection) protected voidwriteNothing(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:
invokein classBaseHttpCommandExecutorService<HttpURLConnection>- Throws:
IOExceptionInterruptedException
-
convert
- Specified by:
convertin classBaseHttpCommandExecutorService<HttpURLConnection>- Throws:
IOExceptionInterruptedException
-
initConnection
Creates and initializes the connection.- Throws:
IOException
-
configureRequestHeaders
Configure the HTTP request headers in the connection. -
writeNothing
-
cleanup
- Specified by:
cleanupin classBaseHttpCommandExecutorService<HttpURLConnection>
-