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
ConstructorsConstructorDescriptionConservativeProxySelector(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: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. 
 
 -