Class ProxyEnvironmentVariableConfigProvider
- java.lang.Object
-
- software.amazon.awssdk.utils.internal.proxy.ProxyEnvironmentVariableConfigProvider
-
- All Implemented Interfaces:
ProxyConfigProvider
public class ProxyEnvironmentVariableConfigProvider extends Object implements ProxyConfigProvider
An implementation of theProxyConfigProvider
interface that retrieves proxy configuration settings from environment variables. This class is responsible for extracting proxy host, port, username, and password settings from environment variables based on the specified proxy scheme (HTTP or HTTPS).- See Also:
ProxyConfigProvider
-
-
Field Summary
-
Fields inherited from interface software.amazon.awssdk.utils.ProxyConfigProvider
HTTPS
-
-
Constructor Summary
Constructors Constructor Description ProxyEnvironmentVariableConfigProvider(String scheme)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
host()
Gets the proxy host.Set<String>
nonProxyHosts()
Gets the set of non-proxy hosts.Optional<String>
password()
Gets the proxy password if available.int
port()
Gets the proxy port.Optional<String>
userName()
Gets the proxy username if available.
-
-
-
Constructor Detail
-
ProxyEnvironmentVariableConfigProvider
public ProxyEnvironmentVariableConfigProvider(String scheme)
-
-
Method Detail
-
port
public int port()
Description copied from interface:ProxyConfigProvider
Gets the proxy port.- Specified by:
port
in interfaceProxyConfigProvider
- Returns:
- The proxy port.
-
userName
public Optional<String> userName()
Description copied from interface:ProxyConfigProvider
Gets the proxy username if available.- Specified by:
userName
in interfaceProxyConfigProvider
- Returns:
- An optional containing the proxy username, if available.
-
password
public Optional<String> password()
Description copied from interface:ProxyConfigProvider
Gets the proxy password if available.- Specified by:
password
in interfaceProxyConfigProvider
- Returns:
- An optional containing the proxy password, if available.
-
host
public String host()
Description copied from interface:ProxyConfigProvider
Gets the proxy host.- Specified by:
host
in interfaceProxyConfigProvider
- Returns:
- The proxy host.
-
nonProxyHosts
public Set<String> nonProxyHosts()
Description copied from interface:ProxyConfigProvider
Gets the set of non-proxy hosts.- Specified by:
nonProxyHosts
in interfaceProxyConfigProvider
- Returns:
- A set containing the non-proxy host names.
-
-