Class ProxyHost


  • public final class ProxyHost
    extends Object
    Proxy host configuration
    Author:
    Jeremy Unruh
    • Constructor Detail

      • ProxyHost

        public ProxyHost​(String host,
                         int port)
    • Method Detail

      • of

        public static ProxyHost of​(String host,
                                   int port)
        Creates a new ProxyHost configuration
        Parameters:
        host - the proxy host (ex. http://myproxy)
        port - the proxy port (ex. 8080)
        Returns:
        ProxyHost
      • of

        public static ProxyHost of​(String host,
                                   int port,
                                   String username,
                                   String password)
        Creates a new ProxyHost configuration with credentials
        Parameters:
        host - the proxy host (ex. http://myproxy)
        port - the proxy port (ex. 8080)
        username - the username for proxy authentication
        password - the password for proxy authentication
        Returns:
        ProxyHost
      • getHost

        public String getHost()
      • getRawHost

        public String getRawHost()
      • getPort

        public int getPort()
      • getUsername

        public String getUsername()
      • getPassword

        public String getPassword()
      • getHostWithPort

        public String getHostWithPort()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object