Class HttpClientProxyConfiguration
- java.lang.Object
-
- com.atlassian.confluence.util.http.httpclient.HttpClientProxyConfiguration
-
@Deprecated(forRemoval=true) public class HttpClientProxyConfiguration extends Object
Deprecated, for removal: This API element is subject to removal in a future version.since 7.0.1 will be removed in 9.0Configures an outbound proxy in HttpClient, using a providedHttpProxyConfiguration
.All logic related to HttpClient is here, rather than in the underlying configuration object.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
configureClient(org.apache.commons.httpclient.HttpClient client)
Deprecated, for removal: This API element is subject to removal in a future version.Configures the provided HttpClient with the proxy settings, including proxy host and port and any configured authentication schemes.static HttpClientProxyConfiguration
getInstance(HttpProxyConfiguration configuration)
Deprecated, for removal: This API element is subject to removal in a future version.Gets a new instance, using the provided proxy config.boolean
shouldProxy(String host)
Deprecated, for removal: This API element is subject to removal in a future version.Returns true if the provided configuration indicates that requests to this host should be proxied, otherwise false.
-
-
-
Method Detail
-
getInstance
public static HttpClientProxyConfiguration getInstance(HttpProxyConfiguration configuration)
Deprecated, for removal: This API element is subject to removal in a future version.Gets a new instance, using the provided proxy config.- See Also:
HttpProxyConfiguration
-
shouldProxy
public boolean shouldProxy(String host)
Deprecated, for removal: This API element is subject to removal in a future version.Returns true if the provided configuration indicates that requests to this host should be proxied, otherwise false.- Parameters:
host
- the destination host of the request, without any scheme or trailing path details. For example: "www.example.com".- See Also:
HttpProxyConfiguration.shouldProxy(String)
-
configureClient
public void configureClient(org.apache.commons.httpclient.HttpClient client)
Deprecated, for removal: This API element is subject to removal in a future version.Configures the provided HttpClient with the proxy settings, including proxy host and port and any configured authentication schemes.
-
-