Class SdkProxyRoutePlanner

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

@SdkInternalApi public class SdkProxyRoutePlanner extends org.apache.hc.client5.http.impl.routing.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.hc.core5.http.HttpHost
    determineProxy(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.protocol.HttpContext context)
     

    Methods inherited from class org.apache.hc.client5.http.impl.routing.DefaultRoutePlanner

    determineLocalAddress, determineRoute, 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.hc.core5.http.HttpHost determineProxy(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.protocol.HttpContext context) throws org.apache.hc.core5.http.HttpException
      Overrides:
      determineProxy in class org.apache.hc.client5.http.impl.routing.DefaultRoutePlanner
      Throws:
      org.apache.hc.core5.http.HttpException