Class ProxyConfiguration


  • public class ProxyConfiguration
    extends Object
    Configuration of access to a remote host through a proxy server

    Configuration Parameters:

    Name Default Description
    host REQUIRED The proxy server host name or ip address.
    port scheme default The proxy server port. If the port is not set then the scheme default port is used.
    scheme http The proxy server URI scheme. HTTP and HTTPS schemas are permitted. By default HTTP scheme is used.
    auth (none) The proxy server AuthConfiguration BASIC authentication credentials. If they are not set then no credentials will be passed to the server.
    nonProxyHosts (none) List of patterns of hosts that should be reached without proxy. The patterns may contain symbol '*' as a wildcard. If a host matches one of the patterns it will be reached through a direct connection.
    • Constructor Detail

      • ProxyConfiguration

        public ProxyConfiguration()
      • ProxyConfiguration

        public ProxyConfiguration​(@NotNull
                                  @NotNull String host)
      • ProxyConfiguration

        public ProxyConfiguration​(@NotNull
                                  @NotNull String host,
                                  int port)
    • Method Detail

      • getHost

        public String getHost()
      • setHost

        public void setHost​(String host)
      • getPort

        public Integer getPort()
      • setPort

        public void setPort​(Integer port)
      • getScheme

        public String getScheme()
      • setScheme

        public void setScheme​(String scheme)
      • getNonProxyHosts

        public @Nullable List<String> getNonProxyHosts()
      • setNonProxyHosts

        public void setNonProxyHosts​(List<String> nonProxyHosts)