Class ProxyConfiguration

java.lang.Object
software.amazon.awssdk.http.nio.netty.ProxyConfiguration
All Implemented Interfaces:
ToCopyableBuilder<ProxyConfiguration.Builder,ProxyConfiguration>

public final class ProxyConfiguration extends Object implements ToCopyableBuilder<ProxyConfiguration.Builder,ProxyConfiguration>
Proxy configuration for NettyNioAsyncHttpClient. This class is used to configure an HTTP or HTTPS proxy to be used by the NettyNioAsyncHttpClient.
See Also:
  • Method Details

    • builder

      public static ProxyConfiguration.Builder builder()
    • scheme

      public String scheme()
      Returns:
      The proxy scheme.
    • host

      public String host()
      Returns:
      The proxy host from the configuration if set, else from the "https.proxyHost" or "http.proxyHost" system property, based on the scheme used, if @link ProxyConfiguration.Builder#useSystemPropertyValues(Boolean)} is set to true
    • port

      public int port()
      Returns:
      The proxy port from the configuration if set, else from the "https.proxyPort" or "http.proxyPort" system property, based on the scheme used, if ProxyConfiguration.Builder.useSystemPropertyValues(Boolean) is set to true
    • username

      public String username()
      Returns:
      The proxy username from the configuration if set, else from the "https.proxyUser" or "http.proxyUser" system property, based on the scheme used, if ProxyConfiguration.Builder.useSystemPropertyValues(Boolean) is set to true
    • password

      public String password()
      Returns:
      The proxy password from the configuration if set, else from the "https.proxyPassword" or "http.proxyPassword" system property, based on the scheme used, if ProxyConfiguration.Builder.useSystemPropertyValues(Boolean) is set to true
    • nonProxyHosts

      public Set<String> nonProxyHosts()
      Returns:
      The set of hosts that should not be proxied. If the value is not set, the value present by "http.nonProxyHost" system property is returned. If system property is also not set, an unmodifiable empty set is returned.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toBuilder

      public ProxyConfiguration.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<ProxyConfiguration.Builder,ProxyConfiguration>
      Returns:
      a builder for type T