public class ProxySystemPropertyConfigProvider extends Object implements ProxyConfigProvider
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).ProxyConfigProvider
HTTPS
Constructor and Description |
---|
ProxySystemPropertyConfigProvider(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, wait
fromEnvironmentSettings, fromSystemEnvironmentSettings, fromSystemPropertySettings
public ProxySystemPropertyConfigProvider(String scheme)
public int port()
ProxyConfigProvider
port
in interface ProxyConfigProvider
public Optional<String> userName()
ProxyConfigProvider
userName
in interface ProxyConfigProvider
public Optional<String> password()
ProxyConfigProvider
password
in interface ProxyConfigProvider
public String host()
ProxyConfigProvider
host
in interface ProxyConfigProvider
public Set<String> nonProxyHosts()
ProxyConfigProvider
nonProxyHosts
in interface ProxyConfigProvider
Copyright © 2023. All rights reserved.