public interface CommonHttpClient extends HttpClient
HttpClient
implementations.
Clients may or may not implement the various configuration parameters and they may or may not take affect after actual
HttpClient
calls. For example, you might set a timeout using the with(HttpTimeout)
and then call the HttpClient.get(java.net.URL)
to perform a HTTP GET. The underlying HTTP client implementation
should respect the timeout configuration but is free to ignore subsequent calls to set the timeout (ie, implementations
may choose to lazy load the underlying client).Modifier and Type | Method and Description |
---|---|
CommonHttpClient |
with(AuthorisationCredentials credentials) |
CommonHttpClient |
with(AutomaticRedirectHandling handleRedirects) |
CommonHttpClient |
with(HttpTimeout timeout) |
CommonHttpClient |
with(Proxy proxy) |
CommonHttpClient |
withoutSsl() |
CommonHttpClient |
withTrustingSsl() |
CommonHttpClient with(AuthorisationCredentials credentials)
CommonHttpClient withoutSsl()
CommonHttpClient withTrustingSsl()
CommonHttpClient with(AutomaticRedirectHandling handleRedirects)
CommonHttpClient with(Proxy proxy)
CommonHttpClient with(HttpTimeout timeout)
Copyright © 2013. All rights reserved.