public final class HttpClients extends Object
CloseableHttpClient
instances.Modifier and Type | Method and Description |
---|---|
static CloseableHttpClient |
createDefault()
Creates
CloseableHttpClient instance with default
configuration. |
static MinimalHttpClient |
createMinimal()
Creates
CloseableHttpClient instance that implements
the most basic HTTP protocol support. |
static MinimalHttpClient |
createMinimal(HttpClientConnectionManager connManager)
Creates
CloseableHttpClient instance that implements
the most basic HTTP protocol support. |
static CloseableHttpClient |
createSystem()
Creates
CloseableHttpClient instance with default
configuration based on system properties. |
static HttpClientBuilder |
custom()
Creates builder object for construction of custom
CloseableHttpClient instances. |
public static CloseableHttpClient createDefault()
CloseableHttpClient
instance with default
configuration.public static MinimalHttpClient createMinimal()
CloseableHttpClient
instance that implements
the most basic HTTP protocol support.public static MinimalHttpClient createMinimal(HttpClientConnectionManager connManager)
CloseableHttpClient
instance that implements
the most basic HTTP protocol support.public static CloseableHttpClient createSystem()
CloseableHttpClient
instance with default
configuration based on system properties.public static HttpClientBuilder custom()
CloseableHttpClient
instances.