public class HttpAsyncClients extends Object
CloseableHttpAsyncClient instances.| Modifier and Type | Method and Description |
|---|---|
static CloseableHttpAsyncClient |
createDefault()
Creates
CloseableHttpAsyncClient instance with default configuration. |
static MinimalHttpAsyncClient |
createMinimal()
Creates
MinimalHttpAsyncClient instance that provides
essential HTTP/1.1 and HTTP/2 message transport only. |
static MinimalHttpAsyncClient |
createMinimal(AsyncClientConnectionManager connManager)
Creates
MinimalHttpAsyncClient instance that provides
essential HTTP/1.1 and HTTP/2 message transport only. |
static MinimalHttpAsyncClient |
createMinimal(org.apache.hc.core5.http.config.H1Config h1Config,
org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig)
Creates
MinimalHttpAsyncClient instance that provides
essential HTTP/1.1 transport only. |
static MinimalHttpAsyncClient |
createMinimal(org.apache.hc.core5.http2.config.H2Config h2Config,
org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig)
Creates
MinimalHttpAsyncClient instance that provides
essential HTTP/2 transport only. |
static MinimalHttpAsyncClient |
createMinimal(org.apache.hc.core5.http2.HttpVersionPolicy versionPolicy,
org.apache.hc.core5.http2.config.H2Config h2Config,
org.apache.hc.core5.http.config.H1Config h1Config)
Creates
MinimalHttpAsyncClient instance that provides
essential HTTP/1.1 and HTTP/2 message transport only. |
static MinimalHttpAsyncClient |
createMinimal(org.apache.hc.core5.http2.HttpVersionPolicy versionPolicy,
org.apache.hc.core5.http2.config.H2Config h2Config,
org.apache.hc.core5.http.config.H1Config h1Config,
org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig)
Creates
MinimalHttpAsyncClient instance that provides
essential HTTP/1.1 and HTTP/2 message transport only. |
static MinimalHttpAsyncClient |
createMinimal(org.apache.hc.core5.http2.HttpVersionPolicy versionPolicy,
org.apache.hc.core5.http2.config.H2Config h2Config,
org.apache.hc.core5.http.config.H1Config h1Config,
org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig,
AsyncClientConnectionManager connmgr)
Creates
MinimalHttpAsyncClient instance that provides
essential HTTP/1.1 and HTTP/2 message transport only. |
static CloseableHttpAsyncClient |
createSystem()
Creates
CloseableHttpAsyncClient instance with default
configuration and system properties. |
static HttpAsyncClientBuilder |
custom()
Creates builder object for construction of custom
CloseableHttpAsyncClient instances. |
public static HttpAsyncClientBuilder custom()
CloseableHttpAsyncClient instances.public static CloseableHttpAsyncClient createDefault()
CloseableHttpAsyncClient instance with default configuration.public static CloseableHttpAsyncClient createSystem()
CloseableHttpAsyncClient instance with default
configuration and system properties.public static MinimalHttpAsyncClient createMinimal(org.apache.hc.core5.http2.HttpVersionPolicy versionPolicy, org.apache.hc.core5.http2.config.H2Config h2Config, org.apache.hc.core5.http.config.H1Config h1Config, org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig, AsyncClientConnectionManager connmgr)
MinimalHttpAsyncClient instance that provides
essential HTTP/1.1 and HTTP/2 message transport only.public static MinimalHttpAsyncClient createMinimal(org.apache.hc.core5.http2.HttpVersionPolicy versionPolicy, org.apache.hc.core5.http2.config.H2Config h2Config, org.apache.hc.core5.http.config.H1Config h1Config, org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig)
MinimalHttpAsyncClient instance that provides
essential HTTP/1.1 and HTTP/2 message transport only.public static MinimalHttpAsyncClient createMinimal(org.apache.hc.core5.http2.HttpVersionPolicy versionPolicy, org.apache.hc.core5.http2.config.H2Config h2Config, org.apache.hc.core5.http.config.H1Config h1Config)
MinimalHttpAsyncClient instance that provides
essential HTTP/1.1 and HTTP/2 message transport only.public static MinimalHttpAsyncClient createMinimal()
MinimalHttpAsyncClient instance that provides
essential HTTP/1.1 and HTTP/2 message transport only.public static MinimalHttpAsyncClient createMinimal(org.apache.hc.core5.http.config.H1Config h1Config, org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig)
MinimalHttpAsyncClient instance that provides
essential HTTP/1.1 transport only.public static MinimalHttpAsyncClient createMinimal(org.apache.hc.core5.http2.config.H2Config h2Config, org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig)
MinimalHttpAsyncClient instance that provides
essential HTTP/2 transport only.public static MinimalHttpAsyncClient createMinimal(AsyncClientConnectionManager connManager)
MinimalHttpAsyncClient instance that provides
essential HTTP/1.1 and HTTP/2 message transport only.Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.