Class ConservativeProxySelector
java.lang.Object
org.eclipse.aether.util.repository.ConservativeProxySelector
- All Implemented Interfaces:
ProxySelector
A proxy selector that delegates to another selector but only if a repository has no proxy yet. If a proxy has already
been assigned to a repository, that is selected.
-
Constructor Summary
ConstructorDescriptionConservativeProxySelector
(ProxySelector selector) Creates a new selector that delegates to the specified selector. -
Method Summary
Modifier and TypeMethodDescriptiongetProxy
(RemoteRepository repository) Selects a proxy for the specified remote repository.
-
Constructor Details
-
ConservativeProxySelector
Creates a new selector that delegates to the specified selector.- Parameters:
selector
- The selector to delegate to in case a repository has no proxy yet, must not benull
.
-
-
Method Details
-
getProxy
Description copied from interface:ProxySelector
Selects a proxy for the specified remote repository.- Specified by:
getProxy
in interfaceProxySelector
- Parameters:
repository
- The repository for which to select a proxy, must not benull
.- Returns:
- The selected proxy or
null
if none.
-