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
-
scheme
- Returns:
- The proxy scheme.
-
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
- 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
- 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
- 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
-
hashCode
public int hashCode() -
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 interfaceToCopyableBuilder<ProxyConfiguration.Builder,
ProxyConfiguration> - Returns:
- a builder for type T
-