Class CtApacheHttpClient

java.lang.Object
io.vrap.rmf.base.client.HttpClientBase
com.commercetools.http.apachehttp.CtApacheHttpClient
All Implemented Interfaces:
VrapHttpClient, Closeable, AutoCloseable

public class CtApacheHttpClient extends HttpClientBase
  • Field Details

  • Constructor Details

    • CtApacheHttpClient

      public CtApacheHttpClient()
    • CtApacheHttpClient

      public CtApacheHttpClient(int maxConnTotal, int maxConnPerRoute)
    • CtApacheHttpClient

      public CtApacheHttpClient(BuilderOptions options)
    • CtApacheHttpClient

      public CtApacheHttpClient(int maxConnTotal, int maxConnPerRoute, BuilderOptions options)
    • CtApacheHttpClient

      public CtApacheHttpClient(Supplier<org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder> builderSupplier)
    • CtApacheHttpClient

      public CtApacheHttpClient(ExecutorService executor)
    • CtApacheHttpClient

      public CtApacheHttpClient(ExecutorService executor, int maxConnTotal, int maxConnPerRoute)
    • CtApacheHttpClient

      public CtApacheHttpClient(ExecutorService executor, BuilderOptions options)
    • CtApacheHttpClient

      public CtApacheHttpClient(ExecutorService executor, int maxConnTotal, int maxConnPerRoute, BuilderOptions options)
    • CtApacheHttpClient

      public CtApacheHttpClient(ExecutorService executor, Supplier<org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder> builderSupplier)
  • Method Details

    • createClientBuilder

      public static org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder createClientBuilder()
    • createClientBuilder

      public static org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder createClientBuilder(org.apache.hc.client5.http.nio.AsyncClientConnectionManager cm)
    • createConnectionManager

      public static org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManagerBuilder createConnectionManager(int maxConnTotal, int maxConnPerRoute)
    • execute

      public CompletableFuture<ApiHttpResponse<byte[]>> execute(ApiHttpRequest request)
    • closeDelegate

      public void closeDelegate() throws Exception
      Throws:
      Exception