Class SdkProxyRoutePlanner

java.lang.Object
org.apache.http.impl.conn.DefaultRoutePlanner
software.amazon.awssdk.http.apache.internal.SdkProxyRoutePlanner
All Implemented Interfaces:
org.apache.http.conn.routing.HttpRoutePlanner

@SdkInternalApi public class SdkProxyRoutePlanner extends org.apache.http.impl.conn.DefaultRoutePlanner
SdkProxyRoutePlanner delegates a Proxy Route Planner from the settings instead of the system properties. It will use the proxy created from proxyHost and proxyPort and filter the hosts who matches nonProxyHosts pattern.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SdkProxyRoutePlanner(String proxyHost, int proxyPort, String proxyProtocol, Set<String> nonProxyHosts)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.http.HttpHost
    determineProxy(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)
     

    Methods inherited from class org.apache.http.impl.conn.DefaultRoutePlanner

    determineRoute

    Methods inherited from class java.lang.Object

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

    • SdkProxyRoutePlanner

      public SdkProxyRoutePlanner(String proxyHost, int proxyPort, String proxyProtocol, Set<String> nonProxyHosts)
  • Method Details

    • determineProxy

      protected org.apache.http.HttpHost determineProxy(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws org.apache.http.HttpException
      Overrides:
      determineProxy in class org.apache.http.impl.conn.DefaultRoutePlanner
      Throws:
      org.apache.http.HttpException