Class Proxies.Builder

  • Enclosing class:
    Proxies

    public static class Proxies.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • useSystemProxies

        public Proxies.Builder useSystemProxies​(Boolean useSystemProxies)
        Sets “java.net.useSystemProxies=true” in net.properties when they exist.
        Parameters:
        useSystemProxies - the value to set
        Returns:
        this builder
      • httpProxyHost

        public Proxies.Builder httpProxyHost​(String httpProxyHost)
        Http host to be set in net.properties file.
        Parameters:
        httpProxyHost - the value to set
        Returns:
        this builder
      • httpProxyPort

        public Proxies.Builder httpProxyPort​(Integer httpProxyPort)
        Http port number to be set in net.properties file.
        Parameters:
        httpProxyPort - the value to set
        Returns:
        this builder
      • httpsProxyHost

        public Proxies.Builder httpsProxyHost​(String httpsProxyHost)
        Https host to be set in net.properties file.
        Parameters:
        httpsProxyHost - the value to set
        Returns:
        this builder
      • httpsProxyPort

        public Proxies.Builder httpsProxyPort​(Integer httpsProxyPort)
        Https port number to be set in net.properties file.
        Parameters:
        httpsProxyPort - the value to set
        Returns:
        this builder
      • ftpProxyHost

        public Proxies.Builder ftpProxyHost​(String ftpProxyHost)
        Ftp host to be set in net.properties file.
        Parameters:
        ftpProxyHost - the value to set
        Returns:
        this builder
      • ftpProxyPort

        public Proxies.Builder ftpProxyPort​(Integer ftpProxyPort)
        Ftp port number to be set in net.properties file.
        Parameters:
        ftpProxyPort - the value to set
        Returns:
        this builder
      • socksProxyHost

        public Proxies.Builder socksProxyHost​(String socksProxyHost)
        Socks host to be set in net.properties file.
        Parameters:
        socksProxyHost - the value to set
        Returns:
        this builder
      • socksProxyPort

        public Proxies.Builder socksProxyPort​(Integer socksProxyPort)
        Socks port number to be set in net.properties file.
        Parameters:
        socksProxyPort - the value to set
        Returns:
        this builder