public final class ProxyUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PROXY_HOST
The host to use as proxy.
|
static String |
PROXY_NONPROXYHOSTS
A specification of non-proxy hosts.
|
static String |
PROXY_PORT
The port to use for the proxy.
|
Modifier and Type | Method and Description |
---|---|
static ProxyServerSelector |
createProxyServerSelector(Properties properties)
Creates a proxy server instance from the given properties.
|
static ProxyServerSelector |
getJdkDefaultProxyServerSelector()
Get a proxy server selector based on the JDK default proxy selector.
|
static ProxyServer |
getProxyServer(AsyncHttpClientConfig config,
Request request) |
public static final String PROXY_HOST
public static final String PROXY_PORT
public static final String PROXY_NONPROXYHOSTS
public static ProxyServer getProxyServer(AsyncHttpClientConfig config, Request request)
config
- the global configrequest
- the requestpublic static ProxyServerSelector createProxyServerSelector(Properties properties)
properties
- the properties to evaluate. Must not be null.PROXY_HOST
,
PROXY_PORT
,
PROXY_NONPROXYHOSTS
public static ProxyServerSelector getJdkDefaultProxyServerSelector()
Copyright © 2019. All rights reserved.