com.atlassian.sal.core.net
Class HttpClientProxyConfig
java.lang.Object
com.atlassian.sal.core.net.HttpClientProxyConfig
public class HttpClientProxyConfig
- extends Object
Configures the proxy on the HttpClient instance, reads the proxy configuration
from the following system properties:
- http.proxyHost
- http.proxyPort (optional, default to 80)
A list of excluded hosts can be provided to bypass the proxy:
- http.nonProxyHosts (format: www.atlassian.com|*.example.com) - The only wildcard supported is the simple suffix match.
If the proxy needs authentication, the credentials must be provided using:
- http.proxyUser
- http.proxyPassword
|
Method Summary |
protected void |
configureProxy(org.apache.commons.httpclient.HttpClient client,
String remoteUrl)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpClientProxyConfig
public HttpClientProxyConfig()
configureProxy
protected void configureProxy(org.apache.commons.httpclient.HttpClient client,
String remoteUrl)
- Parameters:
client - The client to configure the proxy ofremoteUrl - The remote URL
Copyright © 2011 Atlassian. All Rights Reserved.