Class ConservativeProxySelector

java.lang.Object
org.eclipse.aether.util.repository.ConservativeProxySelector
All Implemented Interfaces:
org.eclipse.aether.repository.ProxySelector

public final class ConservativeProxySelector extends Object implements org.eclipse.aether.repository.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

    Constructors
    Constructor
    Description
    ConservativeProxySelector(org.eclipse.aether.repository.ProxySelector selector)
    Creates a new selector that delegates to the specified selector.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.aether.repository.Proxy
    getProxy(org.eclipse.aether.repository.RemoteRepository repository)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ConservativeProxySelector

      public ConservativeProxySelector(org.eclipse.aether.repository.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 Details

    • getProxy

      public org.eclipse.aether.repository.Proxy getProxy(org.eclipse.aether.repository.RemoteRepository repository)
      Specified by:
      getProxy in interface org.eclipse.aether.repository.ProxySelector