Package io.dropwizard.client.proxy
Class ProxyConfiguration
- java.lang.Object
-
- io.dropwizard.client.proxy.ProxyConfiguration
-
public class ProxyConfiguration extends Object
Configuration of access to a remote host through a proxy server Configuration Parameters:Name Default Description hostREQUIRED The proxy server host name or ip address. portscheme default The proxy server port. If the port is not set then the scheme default port is used. schemehttp The proxy server URI scheme. HTTP and HTTPS schemas are permitted. By default HTTP scheme is used. auth(none) The proxy server AuthConfigurationBASIC 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 Summary
Constructors Constructor Description ProxyConfiguration()ProxyConfiguration(@NotNull String host)ProxyConfiguration(@NotNull String host, int port)ProxyConfiguration(@NotNull String host, int port, String scheme, AuthConfiguration auth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable AuthConfigurationgetAuth()StringgetHost()@Nullable List<String>getNonProxyHosts()IntegergetPort()StringgetScheme()voidsetAuth(AuthConfiguration auth)voidsetHost(String host)voidsetNonProxyHosts(List<String> nonProxyHosts)voidsetPort(Integer port)voidsetScheme(String scheme)
-
-
-
Constructor Detail
-
ProxyConfiguration
public ProxyConfiguration()
-
ProxyConfiguration
public ProxyConfiguration(@NotNull @NotNull String host)
-
ProxyConfiguration
public ProxyConfiguration(@NotNull @NotNull String host, int port)
-
ProxyConfiguration
public ProxyConfiguration(@NotNull @NotNull String host, int port, String scheme, AuthConfiguration auth)
-
-
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)
-
getAuth
public @Nullable AuthConfiguration getAuth()
-
setAuth
public void setAuth(AuthConfiguration auth)
-
-