Class Proxy

java.lang.Object
org.apache.maven.repository.Proxy

public class Proxy extends Object
Proxy
  • Field Details

    • PROXY_SOCKS5

      public static final String PROXY_SOCKS5
      See Also:
    • PROXY_SOCKS4

      public static final String PROXY_SOCKS4
      See Also:
    • PROXY_HTTP

      public static final String PROXY_HTTP
      See Also:
    • host

      private String host
      Proxy server host
    • userName

      private String userName
      Username used to access the proxy server
    • password

      private String password
      Password associated with the proxy server
    • port

      private int port
      Proxy server port
    • protocol

      private String protocol
      Type of the proxy
    • nonProxyHosts

      private String nonProxyHosts
      The non-proxy hosts. Follows Java system property format: *.foo.com|localhost.
    • ntlmHost

      private String ntlmHost
      For NTLM proxies, specifies the NTLM host.
    • ntlmDomain

      private String ntlmDomain
      For NTLM proxies, specifies the NTLM domain.
  • Constructor Details

    • Proxy

      public Proxy()
  • Method Details

    • getHost

      public String getHost()
      Return proxy server host name.
      Returns:
      proxy server host name
    • setHost

      public void setHost(String host)
      Set proxy host name.
      Parameters:
      host - proxy server host name
    • getPassword

      public String getPassword()
      Get user's password used to login to proxy server.
      Returns:
      user's password at proxy host
    • setPassword

      public void setPassword(String password)
      Set the user's password for the proxy server.
      Parameters:
      password - password to use to login to a proxy server
    • getPort

      public int getPort()
      Get the proxy port.
      Returns:
      proxy server port
    • setPort

      public void setPort(int port)
      Set the proxy port.
      Parameters:
      port - proxy server port
    • getUserName

      public String getUserName()
      Get the proxy username.
      Returns:
      username for the proxy server
    • setUserName

      public void setUserName(String userName)
      Set the proxy username.
      Parameters:
      userName - username for the proxy server
    • getProtocol

      public String getProtocol()
      Get the protocol of the proxy server.
      Returns:
      the protocol of the proxy server
    • setProtocol

      public void setProtocol(String protocol)
      Parameters:
      protocol - the protocol of the proxy server like SOCKSv4
    • getNonProxyHosts

      public String getNonProxyHosts()
    • setNonProxyHosts

      public void setNonProxyHosts(String nonProxyHosts)
    • getNtlmHost

      public String getNtlmHost()
    • setNtlmHost

      public void setNtlmHost(String ntlmHost)
    • setNtlmDomain

      public void setNtlmDomain(String ntlmDomain)
    • getNtlmDomain

      public String getNtlmDomain()