Class ProxyConfiguration


  • public class ProxyConfiguration
    extends Object
    Is used for configuration of all proxy related configuration.
    Configuration in pom.xml:
     
     <proxyConfig>
         <host></host>
         <port></port>
         <username></username>
         <password></password>
         <hostExclusions></hostExclusions>
     </proxyConfig>
     
     
    Author:
    Arne Franken
    • Constructor Detail

      • ProxyConfiguration

        public ProxyConfiguration()
    • Method Detail

      • getHost

        public String getHost()
        Returns:
        HTTP proxy host name
      • setHost

        public void setHost​(String host)
        HTTP proxy host name
        Parameters:
        host - String
      • getPort

        public String getPort()
        Returns:
        HTTP proxy port as long as a host is set
      • setPort

        public void setPort​(Integer port)
        HTTP proxy port Default: 80
        Parameters:
        port - Integer
      • getUsername

        public String getUsername()
        Returns:
        HTTP proxy username as long as a host is set
      • setUsername

        public void setUsername​(String username)
        HTTP proxy username
        Parameters:
        username - String
      • getPassword

        public String getPassword()
        Returns:
        HTTP proxy user password as long as a host is set
      • setPassword

        public void setPassword​(String password)
        HTTP proxy user password
        Parameters:
        password - String
      • getHostExclusions

        public String getHostExclusions()
        Returns:
        Regex of hosts that will not be proxied as long as a host is set
      • setHostExclusions

        public void setHostExclusions​(String hostExclusions)
        Regex of hosts that will not be proxied
        Parameters:
        hostExclusions - String
      • toString

        public String toString()
        Proxy details formatted for command line output.
        Overrides:
        toString in class Object
        Returns:
        String