Class ApacheSdkHttpClient

java.lang.Object
software.amazon.awssdk.http.apache.internal.impl.ApacheSdkHttpClient
All Implemented Interfaces:
org.apache.http.client.HttpClient, ConnectionManagerAwareHttpClient

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

    Constructors
    Constructor
    Description
    ApacheSdkHttpClient(org.apache.http.client.HttpClient delegate, org.apache.http.conn.HttpClientConnectionManager cm)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.http.HttpResponse
    execute(org.apache.http.client.methods.HttpUriRequest request)
     
    <T> T
    execute(org.apache.http.client.methods.HttpUriRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler)
     
    <T> T
    execute(org.apache.http.client.methods.HttpUriRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler, org.apache.http.protocol.HttpContext context)
     
    org.apache.http.HttpResponse
    execute(org.apache.http.client.methods.HttpUriRequest request, org.apache.http.protocol.HttpContext context)
     
    org.apache.http.HttpResponse
    execute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request)
     
    <T> T
    execute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler)
     
    <T> T
    execute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler, org.apache.http.protocol.HttpContext context)
     
    org.apache.http.HttpResponse
    execute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)
     
    org.apache.http.conn.ClientConnectionManager
     
    org.apache.http.conn.HttpClientConnectionManager
    Returns the HttpClientConnectionManager associated with the http client.
    org.apache.http.params.HttpParams
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ApacheSdkHttpClient

      public ApacheSdkHttpClient(org.apache.http.client.HttpClient delegate, org.apache.http.conn.HttpClientConnectionManager cm)
  • Method Details

    • getParams

      public org.apache.http.params.HttpParams getParams()
      Specified by:
      getParams in interface org.apache.http.client.HttpClient
    • getConnectionManager

      public org.apache.http.conn.ClientConnectionManager getConnectionManager()
      Specified by:
      getConnectionManager in interface org.apache.http.client.HttpClient
    • execute

      public org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest request) throws IOException
      Specified by:
      execute in interface org.apache.http.client.HttpClient
      Throws:
      IOException
    • execute

      public org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest request, org.apache.http.protocol.HttpContext context) throws IOException
      Specified by:
      execute in interface org.apache.http.client.HttpClient
      Throws:
      IOException
    • execute

      public org.apache.http.HttpResponse execute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request) throws IOException
      Specified by:
      execute in interface org.apache.http.client.HttpClient
      Throws:
      IOException
    • execute

      public org.apache.http.HttpResponse execute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws IOException
      Specified by:
      execute in interface org.apache.http.client.HttpClient
      Throws:
      IOException
    • execute

      public <T> T execute(org.apache.http.client.methods.HttpUriRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler) throws IOException
      Specified by:
      execute in interface org.apache.http.client.HttpClient
      Throws:
      IOException
    • execute

      public <T> T execute(org.apache.http.client.methods.HttpUriRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler, org.apache.http.protocol.HttpContext context) throws IOException
      Specified by:
      execute in interface org.apache.http.client.HttpClient
      Throws:
      IOException
    • execute

      public <T> T execute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler) throws IOException
      Specified by:
      execute in interface org.apache.http.client.HttpClient
      Throws:
      IOException
    • execute

      public <T> T execute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler, org.apache.http.protocol.HttpContext context) throws IOException
      Specified by:
      execute in interface org.apache.http.client.HttpClient
      Throws:
      IOException
    • getHttpClientConnectionManager

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