public final class DefaultProxySelector extends java.lang.Object implements ProxySelector
Modifier and Type | Class and Description |
---|---|
(package private) static class |
DefaultProxySelector.NonProxyHosts |
(package private) static class |
DefaultProxySelector.ProxyDef |
Modifier and Type | Field and Description |
---|---|
private java.util.List<DefaultProxySelector.ProxyDef> |
proxies |
Constructor and Description |
---|
DefaultProxySelector() |
Modifier and Type | Method and Description |
---|---|
DefaultProxySelector |
add(Proxy proxy,
java.lang.String nonProxyHosts)
Adds the specified proxy definition to the selector.
|
Proxy |
getProxy(RemoteRepository repository)
Selects a proxy for the specified remote repository.
|
private final java.util.List<DefaultProxySelector.ProxyDef> proxies
public DefaultProxySelector add(Proxy proxy, java.lang.String nonProxyHosts)
proxy
- The proxy definition to add, must not be null
.nonProxyHosts
- The list of (case-insensitive) host names to exclude from proxying, may be null
.null
.public Proxy getProxy(RemoteRepository repository)
ProxySelector
getProxy
in interface ProxySelector
repository
- The repository for which to select a proxy, must not be null
.null
if none.