public interface ProxyConfigProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
HTTPS
Constant representing the HTTPS scheme.
|
| Modifier and Type | Method and Description |
|---|---|
static ProxyConfigProvider |
fromEnvironmentSettings(String scheme)
Returns a new
ProxyConfigProvider that retrieves proxy configuration from environment variables. |
static ProxyConfigProvider |
fromSystemEnvironmentSettings(Boolean useSystemPropertyValues,
Boolean useEnvironmentVariableValues,
String scheme)
Returns a
ProxyConfigProvider based on the specified settings for using system properties, environment
variables, and the scheme. |
static ProxyConfigProvider |
fromSystemPropertySettings(String scheme)
Returns a new
ProxyConfigProvider that retrieves proxy configuration from system properties. |
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.
|
static final String HTTPS
static ProxyConfigProvider fromSystemPropertySettings(String scheme)
ProxyConfigProvider that retrieves proxy configuration from system properties.scheme - The URI scheme for which the proxy configuration is needed (e.g., "http" or "https").ProxyConfigProvider for system property-based proxy configuration.static ProxyConfigProvider fromEnvironmentSettings(String scheme)
ProxyConfigProvider that retrieves proxy configuration from environment variables.scheme - The URI scheme for which the proxy configuration is needed (e.g., "http" or "https").ProxyConfigProvider for environment variable-based proxy configuration.static ProxyConfigProvider fromSystemEnvironmentSettings(Boolean useSystemPropertyValues, Boolean useEnvironmentVariableValues, String scheme)
ProxyConfigProvider based on the specified settings for using system properties, environment
variables, and the scheme.useSystemPropertyValues - A Boolean indicating whether to use system property values.useEnvironmentVariableValues - A Boolean indicating whether to use environment variable values.scheme - The URI scheme for which the proxy configuration is needed (e.g., "http" or "https").ProxyConfigProvider based on the specified settings.int port()
Optional<String> userName()
Optional<String> password()
String host()
Copyright © 2023. All rights reserved.