Class ProxyConfiguration
java.lang.Object
software.amazon.awssdk.http.apache.ProxyConfiguration
- All Implemented Interfaces:
- ToCopyableBuilder<ProxyConfiguration.Builder,- ProxyConfiguration> 
@SdkPublicApi
public final class ProxyConfiguration
extends Object
implements ToCopyableBuilder<ProxyConfiguration.Builder,ProxyConfiguration> 
Configuration that defines how to communicate via an HTTP or HTTPS proxy.
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionstatic ProxyConfiguration.Builderbuilder()Create aProxyConfiguration.Builder, used to create aProxyConfiguration.host()Returns the proxy host name from the configured endpoint if set, else from the "https.proxyHost" or "http.proxyHost" system property, based on the scheme used, ifProxyConfiguration.Builder.useSystemPropertyValues(Boolean)is set to true.The hosts that the client is allowed to access without going through the proxy.For NTLM proxies: The Windows domain name to use when authenticating with the proxy.For NTLM proxies: The Windows workstation name to use when authenticating with the proxy.password()The password to use when connecting through a proxy.intport()Returns the proxy port from the configured endpoint if set, else from the "https.proxyPort" or "http.proxyPort" system property, based on the scheme used, ifProxyConfiguration.Builder.useSystemPropertyValues(Boolean)is set to true.Whether to attempt to authenticate preemptively against the proxy server using basic authentication.scheme()Returns thefrom the configured endpoint.invalid referenceURI#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.Objectequals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuildercopy
- 
Method Details- 
hostReturns the proxy host name from the configured endpoint if set, else from the "https.proxyHost" or "http.proxyHost" system property, based on the scheme used, ifProxyConfiguration.Builder.useSystemPropertyValues(Boolean)is set to true.
- 
portpublic int port()Returns the proxy port from the configured endpoint if set, else from the "https.proxyPort" or "http.proxyPort" system property, based on the scheme used, ifProxyConfiguration.Builder.useSystemPropertyValues(Boolean)is set to true. If no value is found in none of the above options, the default value of 0 is returned.
- 
schemeReturns thefrom the configured endpoint. Otherwise return null.invalid referenceURI#scheme
- 
username
- 
password
- 
ntlmDomainFor NTLM proxies: The Windows domain name to use when authenticating with the proxy.- See Also:
 
- 
ntlmWorkstationFor NTLM proxies: The Windows workstation name to use when authenticating with the proxy.- See Also:
 
- 
nonProxyHostsThe 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:
 
- 
preemptiveBasicAuthenticationEnabledWhether to attempt to authenticate preemptively against the proxy server using basic authentication.- See Also:
 
- 
toBuilderDescription copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
- toBuilderin interface- ToCopyableBuilder<ProxyConfiguration.Builder,- ProxyConfiguration> 
- Returns:
- a builder for type T
 
- 
builderCreate aProxyConfiguration.Builder, used to create aProxyConfiguration.
- 
toString
- 
resolveScheme
 
-