|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis2.transport.http.ProxyConfiguration
public class ProxyConfiguration
The purpose of this class is to configure the proxy auth regardles of the protocol. Proxy will be set only for HTTP connection
Field Summary | |
---|---|
protected static java.lang.String |
ATTR_PROXY
|
protected static java.lang.String |
HTTP_NON_PROXY_HOSTS
|
protected static java.lang.String |
HTTP_PROXY_HOST
|
protected static java.lang.String |
HTTP_PROXY_PORT
|
protected java.lang.String |
nonProxyHosts
|
protected static java.lang.String |
PROXY_HOST_ELEMENT
|
protected static java.lang.String |
PROXY_PASSWORD_ELEMENT
|
protected static java.lang.String |
PROXY_PORT_ELEMENT
|
protected static java.lang.String |
PROXY_USER_ELEMENT
|
protected java.lang.String |
proxyHost
|
protected java.lang.String |
proxyPassword
|
protected int |
proxyPort
|
protected java.lang.String |
proxyUser
|
Constructor Summary | |
---|---|
ProxyConfiguration()
|
Method Summary | |
---|---|
void |
configure(MessageContext messageContext,
org.apache.commons.httpclient.HttpClient httpClient,
org.apache.commons.httpclient.HostConfiguration config)
|
java.lang.String |
getProxyHost()
Retrun proxy host |
java.lang.String |
getProxyPassword()
set password |
int |
getProxyPort()
retrun proxy port |
java.lang.String |
getProxyUser()
return proxy user. |
static boolean |
isHostInNonProxyList(java.lang.String host,
java.lang.String nonProxyHosts)
Check if the specified host is in the list of non proxy hosts. |
static boolean |
isProxyEnabled(MessageContext messageContext,
java.net.URL targetURL)
Check first if the proxy is configured or active. |
protected static boolean |
match(java.lang.String pattern,
java.lang.String str,
boolean isCaseSensitive)
Matches a string against a pattern. |
void |
setProxyHost(java.lang.String proxyHost)
set proxy host |
void |
setProxyPassword(java.lang.String proxyPassword)
get password |
void |
setProxyPort(int proxyPort)
set proxy port |
void |
setProxyUser(java.lang.String proxyUser)
get proxy user |
static boolean |
validateNonProxyHosts(java.lang.String host)
Validates for names that shouldn't be listered as proxies. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String proxyHost
protected java.lang.String nonProxyHosts
protected int proxyPort
protected java.lang.String proxyUser
protected java.lang.String proxyPassword
protected static final java.lang.String HTTP_PROXY_HOST
protected static final java.lang.String HTTP_PROXY_PORT
protected static final java.lang.String HTTP_NON_PROXY_HOSTS
protected static final java.lang.String ATTR_PROXY
protected static final java.lang.String PROXY_HOST_ELEMENT
protected static final java.lang.String PROXY_PORT_ELEMENT
protected static final java.lang.String PROXY_USER_ELEMENT
protected static final java.lang.String PROXY_PASSWORD_ELEMENT
Constructor Detail |
---|
public ProxyConfiguration()
Method Detail |
---|
public void configure(MessageContext messageContext, org.apache.commons.httpclient.HttpClient httpClient, org.apache.commons.httpclient.HostConfiguration config) throws AxisFault
AxisFault
public static boolean isProxyEnabled(MessageContext messageContext, java.net.URL targetURL) throws AxisFault
messageContext
-
AxisFault
public static boolean validateNonProxyHosts(java.lang.String host)
public static boolean isHostInNonProxyList(java.lang.String host, java.lang.String nonProxyHosts)
host
- host namenonProxyHosts
- string containing the list of non proxy hosts
protected static boolean match(java.lang.String pattern, java.lang.String str, boolean isCaseSensitive)
pattern
- the (non-null) pattern to match againststr
- the (non-null) string that must be matched against the
patternisCaseSensitive
-
true
when the string matches against the pattern,
false
otherwise.public java.lang.String getProxyHost()
public void setProxyHost(java.lang.String proxyHost)
proxyHost
- public int getProxyPort()
public void setProxyPort(int proxyPort)
proxyPort
- public java.lang.String getProxyUser()
public void setProxyUser(java.lang.String proxyUser)
proxyUser
- public java.lang.String getProxyPassword()
public void setProxyPassword(java.lang.String proxyPassword)
proxyPassword
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |