|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.util.http.httpclient.HttpClientProxyConfiguration
public class HttpClientProxyConfiguration
Configures an outbound proxy in HttpClient, using a provided HttpProxyConfiguration
.
HttpProxyConfiguration
,
HttpClientHttpRetrievalService
Method Summary | |
---|---|
void |
configureClient(org.apache.commons.httpclient.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(java.lang.String host)
Returns true if the provided configuration indicates that requests to this host should be proxied, otherwise false. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static HttpClientProxyConfiguration getInstance(HttpProxyConfiguration configuration)
HttpProxyConfiguration
public boolean shouldProxy(java.lang.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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |