public class HTTPProxyConfigurator extends Object
| Constructor and Description |
|---|
HTTPProxyConfigurator() |
| Modifier and Type | Method and Description |
|---|---|
static void |
configure(MessageContext messageContext,
org.apache.commons.httpclient.HttpClient httpClient,
org.apache.commons.httpclient.HostConfiguration config)
Configure HTTP Proxy settings of commons-httpclient HostConfiguration.
|
static boolean |
isHostInNonProxyList(String host,
String nonProxyHosts)
Check if the specified host is in the list of non proxy hosts.
|
static boolean |
isProxyEnabled(MessageContext messageContext,
URL targetURL)
Check whether http proxy is configured or active.
|
public static void configure(MessageContext messageContext, org.apache.commons.httpclient.HttpClient httpClient, org.apache.commons.httpclient.HostConfiguration config) throws AxisFault
messageContext - in message context forhttpClient - commons-httpclient instanceconfig - commons-httpclient HostConfigurationAxisFault - if Proxy settings are invalidpublic static boolean isProxyEnabled(MessageContext messageContext, URL targetURL)
messageContext - in message contexttargetURL - URL of the edpoint which we are sending the requestCopyright © The Apache Software Foundation. All Rights Reserved.