com.atlassian.httpclient.apache.httpcomponents
Interface HttpClientProxyConfig

All Known Implementing Classes:
ProvidedHttpClientProxyConfig, SystemPropertiesHttpClientProxyConfig

public interface HttpClientProxyConfig

Implementations of this interface provide proxy information for requests.


Method Summary
 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.
 

Method Detail

getProxy

com.atlassian.fugue.Option<org.apache.http.HttpHost> getProxy(@Nonnull
                                                              org.apache.http.nio.conn.scheme.AsyncScheme scheme)
Get the proxy to use for the given HTTP scheme.

Parameters:
scheme - The scheme to provide the proxy for
Returns:
Some HttpHost representing the proxy, or None if no proxy is configured for the scheme

getNonProxyHosts

java.util.List<java.lang.String> getNonProxyHosts(@Nonnull
                                                  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.

Parameters:
scheme - The scheme.
Returns:
List of non-proxy host strings that represent hosts that don't require a proxy.

applyProxyCredentials

void applyProxyCredentials(@Nonnull
                           org.apache.http.impl.nio.client.AbstractHttpAsyncClient client,
                           @Nonnull
                           org.apache.http.nio.conn.scheme.AsyncSchemeRegistry schemeRegistry)
Configure the given client with credentials to access the configured proxy.

Parameters:
client - The client to configure
schemeRegistry - the registry of schemes


Copyright © 2012-2014 Atlassian. All Rights Reserved.