public class

HttpClientProxyConfiguration

extends Object
java.lang.Object
   ↳ com.atlassian.confluence.util.http.httpclient.HttpClientProxyConfiguration

Class Overview

Configures an outbound proxy in HttpClient, using a provided HttpProxyConfiguration.

All logic related to HttpClient is here, rather than in the underlying configuration object.

Summary

Public Methods
void configureClient(HttpClient client)
Configures the provided HttpClient with the proxy settings, including proxy host and port and any configured authentication schemes.
static HttpClientProxyConfiguration getInstance(HttpProxyConfiguration configuration)
Gets a new instance, using the provided proxy config.
boolean shouldProxy(String host)
Returns true if the provided configuration indicates that requests to this host should be proxied, otherwise false.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public void configureClient (HttpClient client)

Configures the provided HttpClient with the proxy settings, including proxy host and port and any configured authentication schemes.

public static HttpClientProxyConfiguration getInstance (HttpProxyConfiguration configuration)

Gets a new instance, using the provided proxy config.

public boolean shouldProxy (String host)

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".