public class ProxyConfig
extends java.lang.Object
Constructor and Description |
---|
ProxyConfig(org.apache.http.HttpHost proxy,
org.apache.http.auth.UsernamePasswordCredentials creds,
java.lang.String[] proxyBypass,
java.util.Map<java.lang.String,ProxyProfileConfig> proxyProfileMap) |
Modifier and Type | Method and Description |
---|---|
ProxyAuthenticator |
createProxyAuthenticator()
returns DefaultProxyAuthenticator if single proxy server is configured
ProfileProxyAuthenticator if proxy profile is configured
|
org.apache.http.auth.UsernamePasswordCredentials |
getCredentialsForTargetHost(java.lang.String targetHost)
select the proxy credential for the targetHost
|
org.apache.http.auth.UsernamePasswordCredentials |
getCreds() |
org.apache.http.HttpHost |
getProxy() |
java.util.Set<java.lang.String> |
getProxyBypass() |
boolean |
isProxyProfileConfigured()
checks weather the proxy profile map is empty
|
java.lang.String |
logProxyConfig()
returns appropriate log message based on the proxy configuration
whether loading proxy profile or single proxy server or no proxy configured
|
org.apache.http.HttpHost |
selectProxy(org.apache.http.HttpHost target)
Selects the configured proxy server
|
java.lang.String |
toString() |
public ProxyConfig(org.apache.http.HttpHost proxy, org.apache.http.auth.UsernamePasswordCredentials creds, java.lang.String[] proxyBypass, java.util.Map<java.lang.String,ProxyProfileConfig> proxyProfileMap)
public org.apache.http.HttpHost getProxy()
public org.apache.http.auth.UsernamePasswordCredentials getCreds()
public java.util.Set<java.lang.String> getProxyBypass()
public org.apache.http.HttpHost selectProxy(org.apache.http.HttpHost target)
target
- request endpointpublic boolean isProxyProfileConfigured()
public org.apache.http.auth.UsernamePasswordCredentials getCredentialsForTargetHost(java.lang.String targetHost)
targetHost
- targeted hostpublic java.lang.String logProxyConfig()
public ProxyAuthenticator createProxyAuthenticator() throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005-2022 Apache Software Foundation. All Rights Reserved.