public class HTTPProxyConfigurator extends Object
| Constructor and Description |
|---|
HTTPProxyConfigurator() |
| Modifier and Type | Method and Description |
|---|---|
static void |
configure(org.apache.axis2.context.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(org.apache.axis2.context.MessageContext messageContext,
URL targetURL)
Check whether http proxy is configured or active.
|
public static void configure(org.apache.axis2.context.MessageContext messageContext,
org.apache.commons.httpclient.HttpClient httpClient,
org.apache.commons.httpclient.HostConfiguration config)
throws org.apache.axis2.AxisFault
messageContext - in message context forhttpClient - commons-httpclient instanceconfig - commons-httpclient HostConfigurationorg.apache.axis2.AxisFault - if Proxy settings are invalidpublic static boolean isProxyEnabled(org.apache.axis2.context.MessageContext messageContext,
URL targetURL)
messageContext - in message contexttargetURL - URL of the edpoint which we are sending the requestCopyright © 2004–2017 The Apache Software Foundation. All rights reserved.