Class JreProxySelector
- java.lang.Object
-
- org.eclipse.aether.util.repository.JreProxySelector
-
- All Implemented Interfaces:
ProxySelector
public final class JreProxySelector extends Object implements ProxySelector
A proxy selector that uses theJRE's global proxy selector
. In combination with the system propertyjava.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. TheJRE's global authenticator
is used to look up credentials for a proxy when needed.
-
-
Constructor Summary
Constructors Constructor Description JreProxySelector()
Creates a new proxy selector that delegates toProxySelector.getDefault()
.
-
-
-
Constructor Detail
-
JreProxySelector
public JreProxySelector()
Creates a new proxy selector that delegates toProxySelector.getDefault()
.
-
-
Method Detail
-
getProxy
public Proxy getProxy(RemoteRepository repository)
- Specified by:
getProxy
in interfaceProxySelector
-
-