Class JreProxySelector
- java.lang.Object
-
- org.eclipse.aether.util.repository.JreProxySelector
-
- All Implemented Interfaces:
ProxySelector
public final class JreProxySelector extends java.lang.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 authenticatoris used to look up credentials for a proxy when needed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classJreProxySelector.JreProxyAuthentication
-
Constructor Summary
Constructors Constructor Description JreProxySelector()Creates a new proxy selector that delegates toProxySelector.getDefault().
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ProxygetProxy(RemoteRepository repository)Selects a proxy for the specified remote repository.private static booleanisValid(java.net.SocketAddress address)
-
-
-
Method Detail
-
getProxy
public Proxy getProxy(RemoteRepository repository)
Description copied from interface:ProxySelectorSelects a proxy for the specified remote repository.- Specified by:
getProxyin interfaceProxySelector- Parameters:
repository- The repository for which to select a proxy, must not benull.- Returns:
- The selected proxy or
nullif none.
-
isValid
private static boolean isValid(java.net.SocketAddress address)
-
-