Package io.dropwizard.client.proxy
Class ProxyConfiguration
java.lang.Object
io.dropwizard.client.proxy.ProxyConfiguration
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 Summary
ConstructorsConstructorDescriptionProxyConfiguration(@NotNull String host) ProxyConfiguration(@NotNull String host, int port) ProxyConfiguration(@NotNull String host, int port, String scheme, AuthConfiguration auth) -
Method Summary
Modifier and TypeMethodDescription@Nullable AuthConfigurationgetAuth()getHost()getPort()voidsetAuth(AuthConfiguration auth) voidvoidsetNonProxyHosts(List<String> nonProxyHosts) voidvoid
-
Constructor Details
-
ProxyConfiguration
public ProxyConfiguration() -
ProxyConfiguration
-
ProxyConfiguration
-
ProxyConfiguration
public ProxyConfiguration(@NotNull @NotNull String host, int port, String scheme, AuthConfiguration auth)
-
-
Method Details
-
getHost
-
setHost
-
getPort
-
setPort
-
getScheme
-
setScheme
-
getNonProxyHosts
-
setNonProxyHosts
-
getAuth
-
setAuth
-