public class ProvidedHttpClientProxyConfig extends java.lang.Object implements HttpClientProxyConfig
| Constructor and Description |
|---|
ProvidedHttpClientProxyConfig(java.util.Map<Scheme,Host> proxyHostMap,
java.util.Map<Scheme,java.util.List<java.lang.String>> nonProxyHosts) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyProxyCredentials(org.apache.http.impl.nio.client.AbstractHttpAsyncClient client,
org.apache.http.nio.conn.scheme.AsyncSchemeRegistry schemeRegistry)
Configure the given client with credentials to access the configured proxy.
|
java.util.List<java.lang.String> |
getNonProxyHosts(org.apache.http.nio.conn.scheme.AsyncScheme scheme)
Get the list of hosts that don't need to use the proxy for the given HTTP scheme.
|
com.atlassian.fugue.Option<org.apache.http.HttpHost> |
getProxy(org.apache.http.nio.conn.scheme.AsyncScheme scheme)
Get the proxy to use for the given HTTP scheme.
|
public com.atlassian.fugue.Option<org.apache.http.HttpHost> getProxy(@Nonnull
org.apache.http.nio.conn.scheme.AsyncScheme scheme)
HttpClientProxyConfiggetProxy in interface HttpClientProxyConfigscheme - The scheme to provide the proxy forpublic java.util.List<java.lang.String> getNonProxyHosts(@Nonnull
org.apache.http.nio.conn.scheme.AsyncScheme scheme)
HttpClientProxyConfiggetNonProxyHosts in interface HttpClientProxyConfigscheme - The scheme.public void applyProxyCredentials(@Nonnull
org.apache.http.impl.nio.client.AbstractHttpAsyncClient client,
@Nonnull
org.apache.http.nio.conn.scheme.AsyncSchemeRegistry schemeRegistry)
HttpClientProxyConfigapplyProxyCredentials in interface HttpClientProxyConfigclient - The client to configureschemeRegistry - the registry of schemesCopyright © 2012-2014 Atlassian. All Rights Reserved.