Package org.apache.http.impl.client
Class HttpClients
- java.lang.Object
-
- org.apache.http.impl.client.HttpClients
-
public class HttpClients extends java.lang.Object
Factory methods forCloseableHttpClient
instances.- Since:
- 4.3
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CloseableHttpClient
createDefault()
CreatesCloseableHttpClient
instance with default configuration.static CloseableHttpClient
createMinimal()
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
createSystem()
CreatesCloseableHttpClient
instance with default configuration based on system properties.static HttpClientBuilder
custom()
Creates builder object for construction of customCloseableHttpClient
instances.
-
-
-
Method Detail
-
custom
public static HttpClientBuilder custom()
Creates builder object for construction of customCloseableHttpClient
instances.
-
createDefault
public static CloseableHttpClient createDefault()
CreatesCloseableHttpClient
instance with default configuration.
-
createSystem
public static CloseableHttpClient createSystem()
CreatesCloseableHttpClient
instance with default configuration based on system properties.
-
createMinimal
public static CloseableHttpClient createMinimal()
CreatesCloseableHttpClient
instance that implements the most basic HTTP protocol support.
-
createMinimal
public static CloseableHttpClient createMinimal(HttpClientConnectionManager connManager)
CreatesCloseableHttpClient
instance that implements the most basic HTTP protocol support.
-
-