public class ApacheHttpClientBuilder extends Object implements Builder<org.apache.http.client.HttpClient>, ConfigurableHttpClient
Modifier and Type | Class and Description |
---|---|
class |
ApacheHttpClientBuilder.AuthenticatedHost |
Constructor and Description |
---|
ApacheHttpClientBuilder() |
Modifier and Type | Method and Description |
---|---|
static ApacheHttpClientBuilder |
anApacheClientWithShortTimeout() |
org.apache.http.client.HttpClient |
build() |
ApacheHttpClientBuilder |
with(AutomaticRedirectHandling handleRedirects) |
ApacheHttpClientBuilder |
with(HttpTimeout timeout) |
ApacheHttpClientBuilder |
with(Proxy proxy) |
ApacheHttpClientBuilder |
with(Ssl ssl) |
ApacheHttpClientBuilder |
withBasicAuthCredentials(String username,
String password,
URL url) |
ConfigurableHttpClient |
withOAuthCredentials(String accessToken,
URL url) |
public static ApacheHttpClientBuilder anApacheClientWithShortTimeout()
public ApacheHttpClientBuilder withBasicAuthCredentials(String username, String password, URL url)
withBasicAuthCredentials
in interface ConfigurableHttpClient
public ConfigurableHttpClient withOAuthCredentials(String accessToken, URL url)
withOAuthCredentials
in interface ConfigurableHttpClient
public ApacheHttpClientBuilder with(HttpTimeout timeout)
public ApacheHttpClientBuilder with(Proxy proxy)
public ApacheHttpClientBuilder with(Ssl ssl)
public ApacheHttpClientBuilder with(AutomaticRedirectHandling handleRedirects)
Copyright © 2013. All rights reserved.