Class DefaultProxySelector

  • All Implemented Interfaces:
    org.eclipse.aether.repository.ProxySelector

    public final class DefaultProxySelector
    extends java.lang.Object
    implements org.eclipse.aether.repository.ProxySelector
    A simple proxy selector that selects the first matching proxy from a list of configured proxies.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DefaultProxySelector add​(org.eclipse.aether.repository.Proxy proxy, java.lang.String nonProxyHosts)
      Adds the specified proxy definition to the selector.
      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
    • Method Detail

      • add

        public DefaultProxySelector add​(org.eclipse.aether.repository.Proxy proxy,
                                        java.lang.String nonProxyHosts)
        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 be null.
        nonProxyHosts - The list of (case-insensitive) host names to exclude from proxying, may be null.
        Returns:
        This proxy selector for chaining, never null.
      • getProxy

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