public class ProxyEnvironmentVariableConfigProvider extends Object implements ProxyConfigProvider
ProxyConfigProvider 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).ProxyConfigProviderHTTPS| Constructor and Description |
|---|
ProxyEnvironmentVariableConfigProvider(String scheme) |
| Modifier and Type | Method and 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfromEnvironmentSettings, fromSystemEnvironmentSettings, fromSystemPropertySettingspublic ProxyEnvironmentVariableConfigProvider(String scheme)
public int port()
ProxyConfigProviderport in interface ProxyConfigProviderpublic Optional<String> userName()
ProxyConfigProvideruserName in interface ProxyConfigProviderpublic Optional<String> password()
ProxyConfigProviderpassword in interface ProxyConfigProviderpublic String host()
ProxyConfigProviderhost in interface ProxyConfigProviderpublic Set<String> nonProxyHosts()
ProxyConfigProvidernonProxyHosts in interface ProxyConfigProviderCopyright © 2023. All rights reserved.