Class ProxyInfo

  • All Implemented Interfaces:
    java.io.Serializable

    public class ProxyInfo
    extends java.lang.Object
    implements java.io.Serializable
    Contains set of properties used by Wagon objects while connection to the repository must go thru a proxy server.
    Author:
    Michal Maczka
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PROXY_HTTP  
      static java.lang.String PROXY_SOCKS4  
      static java.lang.String PROXY_SOCKS5  
    • Constructor Summary

      Constructors 
      Constructor Description
      ProxyInfo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getHost()
      Return proxy server host name.
      java.lang.String getNonProxyHosts()  
      java.lang.String getNtlmDomain()  
      java.lang.String getNtlmHost()  
      java.lang.String getPassword()
      Get user's password used to login to proxy server.
      int getPort()
      Get the proxy port.
      java.lang.String getType()
      Get the type of the proxy server.
      java.lang.String getUserName()
      Get the proxy username.
      void setHost​(java.lang.String host)
      Set proxy host name.
      void setNonProxyHosts​(java.lang.String nonProxyHosts)  
      void setNtlmDomain​(java.lang.String ntlmDomain)  
      void setNtlmHost​(java.lang.String ntlmHost)  
      void setPassword​(java.lang.String password)
      Set the user's password for the proxy server.
      void setPort​(int port)
      Set the proxy port.
      void setType​(java.lang.String type)  
      void setUserName​(java.lang.String userName)
      Set the proxy username.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ProxyInfo

        public ProxyInfo()
    • Method Detail

      • getHost

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

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

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

        public void setPassword​(java.lang.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 java.lang.String getUserName()
        Get the proxy username.
        Returns:
        username for the proxy server
      • setUserName

        public void setUserName​(java.lang.String userName)
        Set the proxy username.
        Parameters:
        userName - username for the proxy server
      • getType

        public java.lang.String getType()
        Get the type of the proxy server.
        Returns:
        the type of the proxy server
      • setType

        public void setType​(java.lang.String type)
        Parameters:
        type - the type of the proxy server like SOCKSv4
      • getNonProxyHosts

        public java.lang.String getNonProxyHosts()
      • setNonProxyHosts

        public void setNonProxyHosts​(java.lang.String nonProxyHosts)
      • getNtlmHost

        public java.lang.String getNtlmHost()
      • setNtlmHost

        public void setNtlmHost​(java.lang.String ntlmHost)
      • setNtlmDomain

        public void setNtlmDomain​(java.lang.String ntlmDomain)
      • getNtlmDomain

        public java.lang.String getNtlmDomain()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object