Class DefaultProxySelector
java.lang.Object
org.eclipse.aether.util.repository.DefaultProxySelector
- All Implemented Interfaces:
org.eclipse.aether.repository.ProxySelector
public final class DefaultProxySelector
extends Object
implements org.eclipse.aether.repository.ProxySelector
A simple proxy selector that selects the first matching proxy from a list of configured proxies.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds the specified proxy definition to the selector.org.eclipse.aether.repository.Proxy
getProxy
(org.eclipse.aether.repository.RemoteRepository repository)
-
Constructor Details
-
DefaultProxySelector
public DefaultProxySelector()
-
-
Method Details
-
add
Adds the specified proxy definition to the selector. Proxy definitions are ordered, the first matching proxy for a given repository will be used.- Parameters:
proxy
- The proxy definition to add, must not benull
.nonProxyHosts
- The list of (case-insensitive) host names to exclude from proxying, may benull
.- Returns:
- This proxy selector for chaining, never
null
.
-
getProxy
public org.eclipse.aether.repository.Proxy getProxy(org.eclipse.aether.repository.RemoteRepository repository) - Specified by:
getProxy
in interfaceorg.eclipse.aether.repository.ProxySelector
-