Class DefaultProxySelector
java.lang.Object
org.eclipse.aether.util.repository.DefaultProxySelector
- All Implemented Interfaces:
ProxySelector
A simple proxy selector that selects the first matching proxy from a list of configured proxies.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds the specified proxy definition to the selector.getProxy(RemoteRepository repository) Selects a proxy for the specified remote 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 benullnonProxyHosts- the list of (case-insensitive) host names to exclude from proxying, may benull- Returns:
- this proxy selector for chaining, never
null
-
getProxy
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.
-