org.sonatype.aether.util.repository
Class ConservativeProxySelector

java.lang.Object
  extended by org.sonatype.aether.util.repository.ConservativeProxySelector
All Implemented Interfaces:
ProxySelector

public class ConservativeProxySelector
extends Object
implements 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.

Author:
Benjamin Bentmann

Constructor Summary
ConservativeProxySelector(ProxySelector selector)
          Creates a new selector that delegates to the specified selector.
 
Method Summary
 Proxy getProxy(RemoteRepository repository)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConservativeProxySelector

public ConservativeProxySelector(ProxySelector selector)
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 be null.
Method Detail

getProxy

public Proxy getProxy(RemoteRepository repository)
Specified by:
getProxy in interface ProxySelector


Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.