Package org.apache.http.impl.client
Class HttpClients
java.lang.Object
org.apache.http.impl.client.HttpClients
Factory methods for
CloseableHttpClient
instances.- Since:
- 4.3
-
Method Summary
Modifier and TypeMethodDescriptionstatic CloseableHttpClient
CreatesCloseableHttpClient
instance with default configuration.static CloseableHttpClient
CreatesCloseableHttpClient
instance that implements the most basic HTTP protocol support.static CloseableHttpClient
createMinimal
(HttpClientConnectionManager connManager) CreatesCloseableHttpClient
instance that implements the most basic HTTP protocol support.static CloseableHttpClient
CreatesCloseableHttpClient
instance with default configuration based on system properties.static HttpClientBuilder
custom()
Creates builder object for construction of customCloseableHttpClient
instances.
-
Method Details
-
custom
Creates builder object for construction of customCloseableHttpClient
instances. -
createDefault
CreatesCloseableHttpClient
instance with default configuration. -
createSystem
CreatesCloseableHttpClient
instance with default configuration based on system properties. -
createMinimal
CreatesCloseableHttpClient
instance that implements the most basic HTTP protocol support. -
createMinimal
CreatesCloseableHttpClient
instance that implements the most basic HTTP protocol support.
-