Class ProxyConfiguration
java.lang.Object
software.amazon.awssdk.http.urlconnection.ProxyConfiguration
- All Implemented Interfaces:
ToCopyableBuilder<ProxyConfiguration.Builder,ProxyConfiguration>
@SdkPublicApi
public final class ProxyConfiguration
extends Object
implements ToCopyableBuilder<ProxyConfiguration.Builder,ProxyConfiguration>
Proxy configuration for
UrlConnectionHttpClient. This class is used to configure an HTTP proxy to be used by
the UrlConnectionHttpClient.- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ProxyConfiguration.Builderbuilder()Create aProxyConfiguration.Builder, used to create aProxyConfiguration.host()Returns the proxy host name either from the configured endpoint or from the "http.proxyHost" system property ifProxyConfiguration.Builder.useSystemPropertyValues(Boolean)is set to true.The hosts that the client is allowed to access without going through the proxy.password()The password to use when connecting through a proxy.intport()Returns the proxy port either from the configured endpoint or from the "http.proxyPort" system property ifProxyConfiguration.Builder.useSystemPropertyValues(Boolean)is set to true.scheme()Returns thefrom the configured endpoint.invalid reference
URI#schemeTake this object and create a builder that contains all of the current property values of this object.toString()username()The username to use when connecting through a proxy.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
host
Returns the proxy host name either from the configured endpoint or from the "http.proxyHost" system property ifProxyConfiguration.Builder.useSystemPropertyValues(Boolean)is set to true. -
port
public int port()Returns the proxy port either from the configured endpoint or from the "http.proxyPort" system property ifProxyConfiguration.Builder.useSystemPropertyValues(Boolean)is set to true. If no value is found in neither of the above options, the default value of 0 is returned. -
scheme
Returns thefrom the configured endpoint. Otherwise return null.invalid reference
URI#scheme -
username
-
password
-
nonProxyHosts
The hosts that the client is allowed to access without going through the proxy. If the value is not set on the object, the value represent by "http.nonProxyHosts" system property is returned. If system property is also not set, an unmodifiable empty set is returned.- See Also:
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ProxyConfiguration.Builder,ProxyConfiguration> - Returns:
- a builder for type T
-
builder
Create aProxyConfiguration.Builder, used to create aProxyConfiguration. -
toString
-
resolveScheme
-