Class ProxySystemPropertyConfigProvider
java.lang.Object
software.amazon.awssdk.utils.internal.proxy.ProxySystemPropertyConfigProvider
- All Implemented Interfaces:
ProxyConfigProvider
@SdkInternalApi
public class ProxySystemPropertyConfigProvider
extends Object
implements ProxyConfigProvider
An implementation of the
ProxyConfigProvider interface that retrieves proxy configuration settings from system
properties. This class is responsible for extracting proxy host, port, username, and password settings from system properties
based on the specified proxy scheme (HTTP or HTTPS).- See Also:
-
Field Summary
Fields inherited from interface software.amazon.awssdk.utils.ProxyConfigProvider
HTTPS -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ProxySystemPropertyConfigProvider
-
-
Method Details
-
port
public int port()Description copied from interface:ProxyConfigProviderGets the proxy port.- Specified by:
portin interfaceProxyConfigProvider- Returns:
- The proxy port.
-
userName
Description copied from interface:ProxyConfigProviderGets the proxy username if available.- Specified by:
userNamein interfaceProxyConfigProvider- Returns:
- An optional containing the proxy username, if available.
-
password
Description copied from interface:ProxyConfigProviderGets the proxy password if available.- Specified by:
passwordin interfaceProxyConfigProvider- Returns:
- An optional containing the proxy password, if available.
-
host
Description copied from interface:ProxyConfigProviderGets the proxy host.- Specified by:
hostin interfaceProxyConfigProvider- Returns:
- The proxy host.
-
nonProxyHosts
Description copied from interface:ProxyConfigProviderGets the set of non-proxy hosts.- Specified by:
nonProxyHostsin interfaceProxyConfigProvider- Returns:
- A set containing the non-proxy host names.
-