HttpRetrievalService
@Deprecated public class HttpClientProxyConfiguration extends Object
HttpProxyConfiguration
.
All logic related to HttpClient is here, rather than in the underlying configuration object.
Modifier and Type | Method and Description |
---|---|
void |
configureClient(org.apache.commons.httpclient.HttpClient client)
Deprecated.
Configures the provided HttpClient with the proxy settings, including proxy host and port and any
configured authentication schemes.
|
static HttpClientProxyConfiguration |
getInstance(HttpProxyConfiguration configuration)
Deprecated.
Gets a new instance, using the provided proxy config.
|
boolean |
shouldProxy(String host)
Deprecated.
Returns true if the provided configuration indicates that requests to this host should
be proxied, otherwise false.
|
public static HttpClientProxyConfiguration getInstance(HttpProxyConfiguration configuration)
HttpProxyConfiguration
public boolean shouldProxy(String host)
host
- the destination host of the request, without any scheme or trailing path details. For example:
"www.example.com".HttpProxyConfiguration.shouldProxy(String)
public void configureClient(org.apache.commons.httpclient.HttpClient client)
Copyright © 2003–2020 Atlassian. All rights reserved.