Class Proxy


  • public class Proxy
    extends Object
    Holds configuration data for the <proxy> tag used to configure the plugin in the pom.xml file.
    • Constructor Detail

      • Proxy

        public Proxy()
    • Method Detail

      • setHost

        public void setHost​(String host)
        Parameters:
        host - Proxy host.
      • getHost

        public String getHost()
        Returns:
        Proxy host.
      • setPort

        public void setPort​(int port)
        Parameters:
        port - Proxy port.
      • getPort

        public int getPort()
        Returns:
        Proxy port. Default to 80 if not set.
      • setUser

        public void setUser​(String user)
        Parameters:
        user - Username for authenticating proxies.
      • getUser

        public String getUser()
        Returns:
        Username for authenticating proxies.
      • setPassword

        public void setPassword​(String password)
        Parameters:
        password - Password for authenticating proxies.
      • getPassword

        public String getPassword()
        Returns:
        Password for authenticating proxies.
      • setExcludeHosts

        public void setExcludeHosts​(String proxyExcludeHosts)
        Parameters:
        proxyExcludeHosts - List of hosts that do not go through the proxy server. The value can be a list of hosts, each seperated by a |, and in addition a wildcard character (*) can be used for matching. For example: *.foo.com|localhost
      • getExcludeHosts

        public String getExcludeHosts()
        Returns:
        List of hosts that do not go through the proxy server. The value can be a list of hosts, each seperated by a |, and in addition a wildcard character (*) can be used for matching. For example: *.foo.com|localhost
      • configure

        public void configure()
        Set the Java system properties related to proxies.
      • clear

        public void clear()
        Clear all proxy settings.