Class Apache5SdkHttpClient

java.lang.Object
software.amazon.awssdk.http.apache5.internal.impl.Apache5SdkHttpClient
All Implemented Interfaces:
org.apache.hc.client5.http.classic.HttpClient, ConnectionManagerAwareHttpClient

public class Apache5SdkHttpClient extends Object implements ConnectionManagerAwareHttpClient
An instance of ConnectionManagerAwareHttpClient that delegates all the requests to the given http client.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Apache5SdkHttpClient(org.apache.hc.client5.http.classic.HttpClient delegate, org.apache.hc.client5.http.io.HttpClientConnectionManager cm)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.hc.core5.http.HttpResponse
    execute(org.apache.hc.core5.http.ClassicHttpRequest request)
     
    <T> T
    execute(org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.io.HttpClientResponseHandler<? extends T> responseHandler)
     
    org.apache.hc.core5.http.HttpResponse
    execute(org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context)
     
    <T> T
    execute(org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context, org.apache.hc.core5.http.io.HttpClientResponseHandler<? extends T> responseHandler)
     
    org.apache.hc.core5.http.ClassicHttpResponse
    execute(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.ClassicHttpRequest request)
     
    <T> T
    execute(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.io.HttpClientResponseHandler<? extends T> responseHandler)
     
    org.apache.hc.core5.http.HttpResponse
    execute(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context)
     
    <T> T
    execute(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context, org.apache.hc.core5.http.io.HttpClientResponseHandler<? extends T> responseHandler)
     
    org.apache.hc.client5.http.io.HttpClientConnectionManager
    Returns the HttpClientConnectionManager associated with the http client.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.hc.client5.http.classic.HttpClient

    executeOpen
  • Constructor Details

    • Apache5SdkHttpClient

      public Apache5SdkHttpClient(org.apache.hc.client5.http.classic.HttpClient delegate, org.apache.hc.client5.http.io.HttpClientConnectionManager cm)
  • Method Details

    • execute

      public org.apache.hc.core5.http.HttpResponse execute(org.apache.hc.core5.http.ClassicHttpRequest request) throws IOException
      Specified by:
      execute in interface org.apache.hc.client5.http.classic.HttpClient
      Throws:
      IOException
    • execute

      public org.apache.hc.core5.http.HttpResponse execute(org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context) throws IOException
      Specified by:
      execute in interface org.apache.hc.client5.http.classic.HttpClient
      Throws:
      IOException
    • execute

      public org.apache.hc.core5.http.ClassicHttpResponse execute(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.ClassicHttpRequest request) throws IOException
      Specified by:
      execute in interface org.apache.hc.client5.http.classic.HttpClient
      Throws:
      IOException
    • execute

      public org.apache.hc.core5.http.HttpResponse execute(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context) throws IOException
      Specified by:
      execute in interface org.apache.hc.client5.http.classic.HttpClient
      Throws:
      IOException
    • execute

      public <T> T execute(org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.io.HttpClientResponseHandler<? extends T> responseHandler) throws IOException
      Specified by:
      execute in interface org.apache.hc.client5.http.classic.HttpClient
      Throws:
      IOException
    • execute

      public <T> T execute(org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context, org.apache.hc.core5.http.io.HttpClientResponseHandler<? extends T> responseHandler) throws IOException
      Specified by:
      execute in interface org.apache.hc.client5.http.classic.HttpClient
      Throws:
      IOException
    • execute

      public <T> T execute(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.io.HttpClientResponseHandler<? extends T> responseHandler) throws IOException
      Specified by:
      execute in interface org.apache.hc.client5.http.classic.HttpClient
      Throws:
      IOException
    • execute

      public <T> T execute(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context, org.apache.hc.core5.http.io.HttpClientResponseHandler<? extends T> responseHandler) throws IOException
      Specified by:
      execute in interface org.apache.hc.client5.http.classic.HttpClient
      Throws:
      IOException
    • getHttpClientConnectionManager

      public org.apache.hc.client5.http.io.HttpClientConnectionManager getHttpClientConnectionManager()
      Description copied from interface: ConnectionManagerAwareHttpClient
      Returns the HttpClientConnectionManager associated with the http client.
      Specified by:
      getHttpClientConnectionManager in interface ConnectionManagerAwareHttpClient