public final class JreProxySelector extends java.lang.Object implements ProxySelector
JRE's global proxy selector. In
combination with the system property java.net.useSystemProxies, this proxy selector can be employed to pick
up the proxy configuration from the operating system, see Java Networking and Proxies for
details. The JRE's global authenticator is used to look up credentials for a proxy
when needed.| Modifier and Type | Class and Description |
|---|---|
private static class |
JreProxySelector.JreProxyAuthentication |
| Constructor and Description |
|---|
JreProxySelector()
Creates a new proxy selector that delegates to
ProxySelector.getDefault(). |
| Modifier and Type | Method and Description |
|---|---|
Proxy |
getProxy(RemoteRepository repository)
Selects a proxy for the specified remote repository.
|
private static boolean |
isValid(java.net.SocketAddress address) |
public JreProxySelector()
ProxySelector.getDefault().public Proxy getProxy(RemoteRepository repository)
ProxySelectorgetProxy in interface ProxySelectorrepository - The repository for which to select a proxy, must not be null.null if none.private static boolean isValid(java.net.SocketAddress address)