public class CommonHttpClientBuilder extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
acceptAnyCertificate |
protected boolean |
acceptAnyHostname |
protected boolean |
useSystemProperties |
Constructor and Description |
---|
CommonHttpClientBuilder() |
Modifier and Type | Method and Description |
---|---|
CommonHttpClientBuilder |
allowAnyCertificate(boolean acceptAnyCertificate) |
CommonHttpClientBuilder |
allowAnyHostname(boolean acceptAnyHostname) |
org.apache.http.impl.client.CloseableHttpClient |
build() |
org.apache.http.impl.client.HttpClientBuilder |
createInternalHttpClientBuilder() |
protected SSLContext |
createSslContext() |
CommonHttpClientBuilder |
disableContentCompression() |
CommonHttpClientBuilder |
insecure(boolean insecure) |
CommonHttpClientBuilder |
maxConnections(int maxConnections) |
CommonHttpClientBuilder |
setDefaultRequestConfig(org.apache.http.client.config.RequestConfig requestConfig) |
CommonHttpClientBuilder |
useSystemProperties() |
CommonHttpClientBuilder |
useSystemProperties(boolean useSystemProperties) |
protected boolean useSystemProperties
protected boolean acceptAnyCertificate
protected boolean acceptAnyHostname
public CommonHttpClientBuilder allowAnyHostname(boolean acceptAnyHostname)
public CommonHttpClientBuilder allowAnyCertificate(boolean acceptAnyCertificate)
public CommonHttpClientBuilder disableContentCompression()
public CommonHttpClientBuilder insecure(boolean insecure)
public CommonHttpClientBuilder maxConnections(int maxConnections)
public CommonHttpClientBuilder setDefaultRequestConfig(org.apache.http.client.config.RequestConfig requestConfig)
public CommonHttpClientBuilder useSystemProperties()
public CommonHttpClientBuilder useSystemProperties(boolean useSystemProperties)
public org.apache.http.impl.client.CloseableHttpClient build()
public org.apache.http.impl.client.HttpClientBuilder createInternalHttpClientBuilder()
protected SSLContext createSslContext()