Class Proxy

java.lang.Object
org.eclipse.aether.repository.Proxy

public final class Proxy extends Object
A proxy to use for connections to a repository.
  • Field Details

  • Constructor Details

    • Proxy

      public Proxy(String type, String host, int port)
      Creates a new proxy with the specified properties and no authentication.
      Parameters:
      type - The type of the proxy, e.g. "http", may be null.
      host - The host of the proxy, may be null.
      port - The port of the proxy.
    • Proxy

      public Proxy(String type, String host, int port, Authentication auth)
      Creates a new proxy with the specified properties.
      Parameters:
      type - The type of the proxy, e.g. "http", may be null.
      host - The host of the proxy, may be null.
      port - The port of the proxy.
      auth - The authentication to use for the proxy connection, may be null.
  • Method Details

    • getType

      public String getType()
      Gets the type of this proxy.
      Returns:
      The type of this proxy, never null.
    • getHost

      public String getHost()
      Gets the host for this proxy.
      Returns:
      The host for this proxy, never null.
    • getPort

      public int getPort()
      Gets the port number for this proxy.
      Returns:
      The port number for this proxy.
    • getAuthentication

      Gets the authentication to use for the proxy connection.
      Returns:
      The authentication to use or null if none.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object