ClientBuilder |
ClientBuilder.addContentType(org.apache.http.entity.ContentType contentType) |
Sets content type to header
|
ClientBuilder |
ClientBuilder.addDefaultHeader(String name,
String value) |
Header needs to be the same for all requests which go through the built CloseableHttpClient
|
ClientBuilder |
ClientBuilder.addDefaultHeader(org.apache.http.Header header) |
Header needs to be the same for all requests which go through the built CloseableHttpClient
|
ClientBuilder |
ClientBuilder.addDefaultHeaders(Collection<? extends org.apache.http.Header> headers) |
Headers need to be the same for all requests which go through the built CloseableHttpClient
|
ClientBuilder |
ClientBuilder.addDefaultHeaders(org.apache.http.Header... headers) |
Headers need to be the same for all requests which go through the built CloseableHttpClient
|
ClientBuilder |
ClientBuilder.addDefaultPoolingHttpClientConnectionManagerCustomizer(Consumer<org.apache.http.impl.conn.PoolingHttpClientConnectionManager> defaultPoolingHttpClientConnectionManagerCustomizerConsumer) |
|
ClientBuilder |
ClientBuilder.addDefaultRequestConfigCustomizer(Consumer<org.apache.http.client.config.RequestConfig.Builder> defaultRequestConfigBuilderConsumer) |
|
ClientBuilder |
ClientBuilder.addHttpClientCustomizer(Consumer<org.apache.http.impl.client.HttpClientBuilder> httpClientCustomizer) |
The method takes the Consumer instance which gives the HttpClientBuilder instance to customize
the CloseableHttpClient before the http-request is built
|
ClientBuilder |
ClientBuilder.connectionRequestTimeout(int connectionRequestTimeout) |
The timeout in milliseconds used when requesting a connection
from the connection manager.
|
static ClientBuilder |
ClientBuilder.create() |
|
ClientBuilder |
ClientBuilder.enableAutomaticRetries() |
By default, the HttpClientBuilder.disableAutomaticRetries() called.
|
ClientBuilder |
ClientBuilder.enableCookieManagement() |
By default, the HttpClientBuilder.disableCookieManagement() called.
|
ClientBuilder |
ClientBuilder.enableDefaultRedirectStrategy() |
By default, only GET requests resulting in a redirect are automatically followed.
|
ClientBuilder |
ClientBuilder.enableLaxRedirectStrategy() |
By default, only GET requests resulting in a redirect are automatically followed.
|
ClientBuilder |
ClientBuilder.hostnameVerifier(HostnameVerifier hostnameVerifier) |
|
ClientBuilder |
ClientBuilder.proxy(String host,
int port) |
|
ClientBuilder |
ClientBuilder.proxy(URI proxyUri) |
Added proxy by proxyUri.
|
ClientBuilder |
ClientBuilder.proxy(org.apache.http.HttpHost proxy) |
Added proxy host.
|
ClientBuilder |
ClientBuilder.redirectStrategy(org.apache.http.client.RedirectStrategy redirectStrategy) |
By default disabled.
|
ClientBuilder |
ClientBuilder.setConnectTimeout(int connectTimeout) |
Determines the timeout in milliseconds until a connection is established.
|
ClientBuilder |
ClientBuilder.setDefaultMaxPoolSizePerRoute(int defaultMaxPoolSizePerRoute) |
|
ClientBuilder |
ClientBuilder.setMaxPoolSize(int maxPoolSize) |
|
ClientBuilder |
ClientBuilder.setMaxPoolSizePerRoute(org.apache.http.HttpHost httpHost,
int maxRoutePoolSize) |
Set the connection pool default max size of concurrent connections to a specific route
|
ClientBuilder |
ClientBuilder.socketTimeOut(int socketTimeOut) |
Defines the socket timeout (SO_TIMEOUT ) in milliseconds,
which is the timeout for waiting for data or, put differently,
a maximum period inactivity between two consecutive data packets).
|
ClientBuilder |
ClientBuilder.sslContext(SSLContext sslContext) |
|
ClientBuilder |
ClientBuilder.trustAllCertificates() |
Accept all certificates
|
ClientBuilder |
ClientBuilder.trustAllHosts() |
Accept all hosts
|
ClientBuilder |
ClientBuilder.useDefaultProxy() |
Instruct HttpClient to use the standard JRE proxy selector to obtain proxy.
|