> DelegatingRetryHandler retryHandler, IOExceptionRetryHandler
> ioRetryHandler,
> DelegatingErrorHandler errorHandler, HttpWire wire,
> @Named("untrusted") HostnameVerifier verifier,
> - @Named("untrusted") Supplier<SSLContext>
> untrustedSSLContextProvider, Function<URI, Proxy> proxyForURI)
> - throws SecurityException, NoSuchFieldException {
> - super(utils, contentMetadataCodec, retryHandler, ioRetryHandler,
> errorHandler, wire, verifier,
> - untrustedSSLContextProvider, proxyForURI);
> + @Named("untrusted") Supplier<SSLContext>
> untrustedSSLContextProvider, Function<URI, Proxy> proxyForURI) {
> + super(utils, contentMetadataCodec, retryHandler, ioRetryHandler,
> errorHandler, wire);
> + this.untrustedSSLContextProvider =
> checkNotNull(untrustedSSLContextProvider, "untrustedSSLContextProvider");
> + this.verifier = checkNotNull(verifier, "verifier");
> + this.proxyForURI = checkNotNull(proxyForURI, "proxyForURI");
> + // OkHttp client can be safely used to perform different requests.
> + // If a request needs to customize it, it is safe to invoke its clone()
> + // method to get a client scoped to that request.
> + this.globalClient = createOkHttpClient();
Use dependency injection please!
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/617/files#r21004350