Class HttpAsyncClients

java.lang.Object
org.apache.hc.client5.http.impl.async.HttpAsyncClients

public final class HttpAsyncClients extends Object
Factory methods for CloseableHttpAsyncClient instances.
Since:
5.0
  • Constructor Details

    • HttpAsyncClients

      private HttpAsyncClients()
  • Method Details

    • custom

      public static HttpAsyncClientBuilder custom()
      Creates builder object for construction of custom CloseableHttpAsyncClient instances.
    • createDefault

      public static CloseableHttpAsyncClient createDefault()
      Creates CloseableHttpAsyncClient instance with default configuration.
    • createSystem

      public static CloseableHttpAsyncClient createSystem()
      Creates CloseableHttpAsyncClient instance with default configuration and system properties.
    • customHttp2

      public static H2AsyncClientBuilder customHttp2()
      Creates builder object for construction of custom HTTP/2 CloseableHttpAsyncClient instances optimized for HTTP/2 protocol and message multiplexing
    • createHttp2Default

      public static CloseableHttpAsyncClient createHttp2Default()
      Creates HTTP/2 CloseableHttpAsyncClient instance with default configuration optimized for HTTP/2 protocol and message multiplexing.
    • createHttp2System

      public static CloseableHttpAsyncClient createHttp2System()
      Creates HTTP/2 CloseableHttpAsyncClient instance with default configuration and system properties optimized for HTTP/2 protocol and message multiplexing.
    • createMinimalProtocolProcessor

      private static org.apache.hc.core5.http.protocol.HttpProcessor createMinimalProtocolProcessor()
    • createMinimalHttpAsyncClientImpl

      private static MinimalHttpAsyncClient createMinimalHttpAsyncClientImpl(org.apache.hc.core5.reactor.IOEventHandlerFactory eventHandlerFactory, AsyncPushConsumerRegistry pushConsumerRegistry, org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig, AsyncClientConnectionManager connmgr, SchemePortResolver schemePortResolver, TlsConfig tlsConfig)
    • createMinimal

      @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)
      Creates MinimalHttpAsyncClient instance optimized for HTTP/1.1 and HTTP/2 message transport without advanced HTTP protocol functionality.
    • createMinimal

      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)
      Creates MinimalHttpAsyncClient instance optimized for HTTP/1.1 and HTTP/2 message transport without advanced HTTP protocol functionality.
      Since:
      5.2
    • createMinimal

      @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)
      Creates MinimalHttpAsyncClient instance optimized for HTTP/1.1 and HTTP/2 message transport without advanced HTTP protocol functionality.
    • createMinimal

      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)
      Creates MinimalHttpAsyncClient instance optimized for HTTP/1.1 and HTTP/2 message transport without advanced HTTP protocol functionality.
    • createMinimal

      public 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.
    • createMinimal

      public static MinimalHttpAsyncClient createMinimal()
      Creates MinimalHttpAsyncClient instance optimized for HTTP/1.1 and HTTP/2 message transport without advanced HTTP protocol functionality.
    • createMinimal

      public static MinimalHttpAsyncClient createMinimal(AsyncClientConnectionManager connManager)
      Creates MinimalHttpAsyncClient instance optimized for HTTP/1.1 and HTTP/2 message transport without advanced HTTP protocol functionality.
    • createMinimalHttp2AsyncClientImpl

      private static MinimalH2AsyncClient createMinimalHttp2AsyncClientImpl(org.apache.hc.core5.reactor.IOEventHandlerFactory eventHandlerFactory, AsyncPushConsumerRegistry pushConsumerRegistry, org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig, DnsResolver dnsResolver, org.apache.hc.core5.http.nio.ssl.TlsStrategy tlsStrategy)
    • createHttp2Minimal

      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)
      Creates MinimalH2AsyncClient instance optimized for HTTP/2 multiplexing message transport without advanced HTTP protocol functionality.
    • createHttp2Minimal

      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)
      Creates MinimalH2AsyncClient instance optimized for HTTP/2 multiplexing message transport without advanced HTTP protocol functionality.
    • createHttp2Minimal

      public 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.
    • createHttp2Minimal

      public 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.
    • createHttp2Minimal

      public static MinimalH2AsyncClient createHttp2Minimal()
      Creates MinimalH2AsyncClient instance optimized for HTTP/2 multiplexing message transport without advanced HTTP protocol functionality.