Class ProxyServerConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
        Constructs a Builder instance.
    • Method Detail

      • withHost

        public ProxyServerConfig.Builder withHost​(String host)
        Sets the host name of proxy server.
        Parameters:
        host - Host name. Cannot be null or empty
        Returns:
        this Builder instance to add any additional parameters
      • withPort

        public ProxyServerConfig.Builder withPort​(Integer port)
        Sets the port number of proxy server. It should be greater than 0. Scheme's default port is used if not provided.
        Parameters:
        port - Port number; can not be null.
        Returns:
        this Builder instance to add any additional parameters
      • withProxyScheme

        public ProxyServerConfig.Builder withProxyScheme​(ProxyScheme proxyScheme)
        Sets the scheme of proxy server. Possible values are HTTP and HTTPS. Default value is HTTP.
        Parameters:
        proxyScheme - Proxy scheme. See ProxyScheme for scheme values; can not be null.
        Returns:
        this Builder instance to add any additional parameters
      • build

        public ProxyServerConfig build()
        Returns a new ProxyServerConfig instance built from the current state of this builder.
        Returns:
        a new ProxyServerConfig instance