public final class HttpAsyncClients extends Object
CloseableHttpAsyncClient
instances.Modifier and Type | Method and Description |
---|---|
static CloseableHttpAsyncClient |
createDefault()
Creates
CloseableHttpAsyncClient instance with default configuration. |
static CloseableHttpAsyncClient |
createHttp2Default()
Creates HTTP/2
CloseableHttpAsyncClient instance with default configuration
optimized for HTTP/2 protocol and message multiplexing. |
static MinimalH2AsyncClient |
createHttp2Minimal()
Creates
MinimalH2AsyncClient instance optimized for HTTP/2 multiplexing message
transport without advanced HTTP protocol functionality. |
static MinimalH2AsyncClient |
createHttp2Minimal(org.apache.hc.core5.http2.config.H2Config h2Config)
Creates
MinimalH2AsyncClient instance optimized for HTTP/2 multiplexing message
transport without advanced HTTP protocol functionality. |
static MinimalH2AsyncClient |
createHttp2Minimal(org.apache.hc.core5.http2.config.H2Config h2Config,
org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig)
Creates
MinimalH2AsyncClient instance optimized for HTTP/2 multiplexing message
transport without advanced HTTP protocol functionality. |
static MinimalH2AsyncClient |
createHttp2Minimal(org.apache.hc.core5.http2.config.H2Config h2Config,
org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig,
DnsResolver dnsResolver,
org.apache.hc.core5.http.nio.ssl.TlsStrategy tlsStrategy)
Creates
MinimalH2AsyncClient instance optimized for HTTP/2 multiplexing message
transport without advanced HTTP protocol functionality. |
static MinimalH2AsyncClient |
createHttp2Minimal(org.apache.hc.core5.http2.config.H2Config h2Config,
org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig,
org.apache.hc.core5.http.nio.ssl.TlsStrategy tlsStrategy)
Creates
MinimalH2AsyncClient instance optimized for HTTP/2 multiplexing message
transport without advanced HTTP protocol functionality. |
static CloseableHttpAsyncClient |
createHttp2System()
Creates HTTP/2
CloseableHttpAsyncClient instance with default configuration and
system properties optimized for HTTP/2 protocol and message multiplexing. |
static MinimalHttpAsyncClient |
createMinimal()
Creates
MinimalHttpAsyncClient instance optimized for
HTTP/1.1 and HTTP/2 message transport without advanced HTTP protocol
functionality. |
static MinimalHttpAsyncClient |
createMinimal(AsyncClientConnectionManager connManager)
Creates
MinimalHttpAsyncClient instance optimized for
HTTP/1.1 and HTTP/2 message transport without advanced HTTP protocol
functionality. |
static MinimalHttpAsyncClient |
createMinimal(org.apache.hc.core5.http2.config.H2Config h2Config,
org.apache.hc.core5.http.config.Http1Config h1Config)
Creates
MinimalHttpAsyncClient instance optimized for
HTTP/1.1 and HTTP/2 message transport without advanced HTTP protocol
functionality. |
static MinimalHttpAsyncClient |
createMinimal(org.apache.hc.core5.http2.config.H2Config h2Config,
org.apache.hc.core5.http.config.Http1Config h1Config,
org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig)
Creates
MinimalHttpAsyncClient instance optimized for
HTTP/1.1 and HTTP/2 message transport without advanced HTTP protocol
functionality. |
static MinimalHttpAsyncClient |
createMinimal(org.apache.hc.core5.http2.config.H2Config h2Config,
org.apache.hc.core5.http.config.Http1Config h1Config,
org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig,
AsyncClientConnectionManager connmgr)
Creates
MinimalHttpAsyncClient instance optimized for
HTTP/1.1 and HTTP/2 message transport without advanced HTTP protocol
functionality. |
static MinimalHttpAsyncClient |
createMinimal(org.apache.hc.core5.http2.HttpVersionPolicy versionPolicy,
org.apache.hc.core5.http2.config.H2Config h2Config,
org.apache.hc.core5.http.config.Http1Config h1Config,
org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig)
Deprecated.
|
static MinimalHttpAsyncClient |
createMinimal(org.apache.hc.core5.http2.HttpVersionPolicy versionPolicy,
org.apache.hc.core5.http2.config.H2Config h2Config,
org.apache.hc.core5.http.config.Http1Config h1Config,
org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig,
AsyncClientConnectionManager connmgr)
|
static CloseableHttpAsyncClient |
createSystem()
Creates
CloseableHttpAsyncClient instance with default
configuration and system properties. |
static HttpAsyncClientBuilder |
custom()
Creates builder object for construction of custom
CloseableHttpAsyncClient instances. |
static H2AsyncClientBuilder |
customHttp2()
Creates builder object for construction of custom HTTP/2
CloseableHttpAsyncClient instances optimized for HTTP/2 protocol
and message multiplexing |
static org.apache.hc.core5.http.nio.HandlerFactory<org.apache.hc.core5.http.nio.AsyncPushConsumer> |
pushRouter(org.apache.hc.core5.http.impl.routing.RequestRouter<org.apache.hc.core5.function.Supplier<org.apache.hc.core5.http.nio.AsyncPushConsumer>> requestRouter)
Creates
HandlerFactory backed by a push RequestRouter . |
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 H2AsyncClientBuilder customHttp2()
CloseableHttpAsyncClient
instances optimized for HTTP/2 protocol
and message multiplexingpublic static CloseableHttpAsyncClient createHttp2Default()
CloseableHttpAsyncClient
instance with default configuration
optimized for HTTP/2 protocol and message multiplexing.public static CloseableHttpAsyncClient createHttp2System()
CloseableHttpAsyncClient
instance with default configuration and
system properties optimized for HTTP/2 protocol and message multiplexing.@Deprecated 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.Http1Config h1Config, org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig, AsyncClientConnectionManager connmgr)
MinimalHttpAsyncClient
instance optimized for
HTTP/1.1 and HTTP/2 message transport without advanced HTTP protocol
functionality.public static MinimalHttpAsyncClient createMinimal(org.apache.hc.core5.http2.config.H2Config h2Config, org.apache.hc.core5.http.config.Http1Config h1Config, org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig, AsyncClientConnectionManager connmgr)
MinimalHttpAsyncClient
instance optimized for
HTTP/1.1 and HTTP/2 message transport without advanced HTTP protocol
functionality.@Deprecated 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.Http1Config h1Config, org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig)
createMinimal(H2Config, Http1Config, IOReactorConfig)
MinimalHttpAsyncClient
instance optimized for
HTTP/1.1 and HTTP/2 message transport without advanced HTTP protocol
functionality.public static MinimalHttpAsyncClient createMinimal(org.apache.hc.core5.http2.config.H2Config h2Config, org.apache.hc.core5.http.config.Http1Config h1Config, org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig)
MinimalHttpAsyncClient
instance optimized for
HTTP/1.1 and HTTP/2 message transport without advanced HTTP protocol
functionality.public static MinimalHttpAsyncClient createMinimal(org.apache.hc.core5.http2.config.H2Config h2Config, org.apache.hc.core5.http.config.Http1Config h1Config)
MinimalHttpAsyncClient
instance optimized for
HTTP/1.1 and HTTP/2 message transport without advanced HTTP protocol
functionality.public static MinimalHttpAsyncClient createMinimal()
MinimalHttpAsyncClient
instance optimized for
HTTP/1.1 and HTTP/2 message transport without advanced HTTP protocol
functionality.public static MinimalHttpAsyncClient createMinimal(AsyncClientConnectionManager connManager)
MinimalHttpAsyncClient
instance optimized for
HTTP/1.1 and HTTP/2 message transport without advanced HTTP protocol
functionality.public static MinimalH2AsyncClient createHttp2Minimal(org.apache.hc.core5.http2.config.H2Config h2Config, org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig, DnsResolver dnsResolver, org.apache.hc.core5.http.nio.ssl.TlsStrategy tlsStrategy)
MinimalH2AsyncClient
instance optimized for HTTP/2 multiplexing message
transport without advanced HTTP protocol functionality.public static MinimalH2AsyncClient createHttp2Minimal(org.apache.hc.core5.http2.config.H2Config h2Config, org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig, org.apache.hc.core5.http.nio.ssl.TlsStrategy tlsStrategy)
MinimalH2AsyncClient
instance optimized for HTTP/2 multiplexing message
transport without advanced HTTP protocol functionality.public static MinimalH2AsyncClient createHttp2Minimal(org.apache.hc.core5.http2.config.H2Config h2Config, org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig)
MinimalH2AsyncClient
instance optimized for HTTP/2 multiplexing message
transport without advanced HTTP protocol functionality.public static MinimalH2AsyncClient createHttp2Minimal(org.apache.hc.core5.http2.config.H2Config h2Config)
MinimalH2AsyncClient
instance optimized for HTTP/2 multiplexing message
transport without advanced HTTP protocol functionality.public static MinimalH2AsyncClient createHttp2Minimal()
MinimalH2AsyncClient
instance optimized for HTTP/2 multiplexing message
transport without advanced HTTP protocol functionality.public static org.apache.hc.core5.http.nio.HandlerFactory<org.apache.hc.core5.http.nio.AsyncPushConsumer> pushRouter(org.apache.hc.core5.http.impl.routing.RequestRouter<org.apache.hc.core5.function.Supplier<org.apache.hc.core5.http.nio.AsyncPushConsumer>> requestRouter)
HandlerFactory
backed by a push RequestRouter
.Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.