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 CloseableHttpClientCreatesCloseableHttpClientinstance with default configuration.static CloseableHttpClientCreatesCloseableHttpClientinstance that implements the most basic HTTP protocol support.static CloseableHttpClientcreateMinimal(HttpClientConnectionManager connManager) CreatesCloseableHttpClientinstance that implements the most basic HTTP protocol support.static CloseableHttpClientCreatesCloseableHttpClientinstance with default configuration based on system properties.static HttpClientBuildercustom()Creates builder object for construction of customCloseableHttpClientinstances.
-
Method Details
-
custom
Creates builder object for construction of customCloseableHttpClientinstances. -
createDefault
CreatesCloseableHttpClientinstance with default configuration. -
createSystem
CreatesCloseableHttpClientinstance with default configuration based on system properties. -
createMinimal
CreatesCloseableHttpClientinstance that implements the most basic HTTP protocol support. -
createMinimal
CreatesCloseableHttpClientinstance that implements the most basic HTTP protocol support.
-