Source:
public ProxyConfig build(TransportOutDescription transportOut) throws AxisFault { name = transportOut.getName(); Map<String, ProxyProfileConfig> proxyProfileConfigMap = getProxyProfiles(transportOut); if (proxyProfileConfigMap == null) { String proxyHost = null; int proxyPort = -1; String proxyHostStr = "http.proxyHost"; String proxyPortStr = "http.proxyPort"; Parameter proxyHostParam = transportOut.getParameter(proxyHostStr); if (proxyHostParam != null) { proxyHost = (String) proxyHostParam.getValue(); Parameter proxyPortParam = transportOut.getParameter(proxyPortStr); if (proxyPortParam != null) { proxyPort = Integer.parseInt((String) proxyPortParam.getValue()); } } if (proxyHost == null) { proxyHost = System.getProperty(proxyHostStr); if (proxyHost != null) { String s = System.getProperty(proxyPortStr); if (s != null) { proxyPort = Integer.parseInt(s); } } } if (proxyHost != null) { proxy = new HttpHost(proxyHost, proxyPort >= 0 ? proxyPort : 80); String bypassListStr = null; String nonProxyHostStr = "http.nonProxyHosts"; Parameter bypassListParam = transportOut.getParameter(nonProxyHostStr); if (bypassListParam != null) { bypassListStr = (String) bypassListParam.getValue(); } if (bypassListStr == null) { bypassListStr = System.getProperty(nonProxyHostStr); } if (bypassListStr != null) { proxyBypass = bypassListStr.split("\\|"); } Parameter proxyUsernameParam = transportOut.getParameter("http.proxy.username"); Parameter proxyPasswordParam = transportOut.getParameter("http.proxy.password"); if (proxyUsernameParam != null) { proxyCredentials = new UsernamePasswordCredentials((String) proxyUsernameParam.getValue(), proxyPasswordParam != null ? (String) proxyPasswordParam.getValue() : ""); } } } return new ProxyConfig(proxy, proxyCredentials, proxyBypass, proxyProfileConfigMap); }

Target:
public ProxyConfig build(TransportOutDescription transportOut) throws AxisFault { name = transportOut.getName(); Map<String, ProxyProfileConfig> proxyProfileConfigMap = getProxyProfiles(transportOut); if (proxyProfileConfigMap == null) { String proxyHost = null; int proxyPort = -1; Parameter proxyHostParam = transportOut.getParameter(PassThroughConstants.HTTP_PROXY_HOST); if (proxyHostParam != null) { proxyHost = (String) proxyHostParam.getValue(); Parameter proxyPortParam = transportOut.getParameter(PassThroughConstants.HTTP_PROXY_PORT); if (proxyPortParam != null) { proxyPort = Integer.parseInt((String) proxyPortParam.getValue()); } } if (proxyHost == null) { proxyHost = System.getProperty(PassThroughConstants.HTTP_PROXY_HOST); if (proxyHost != null) { String s = System.getProperty(PassThroughConstants.HTTP_PROXY_PORT); if (s != null) { proxyPort = Integer.parseInt(s); } } } if (proxyHost != null) { proxy = new HttpHost(proxyHost, proxyPort >= 0 ? proxyPort : 80); String bypassListStr = null; Parameter bypassListParam = transportOut.getParameter(PassThroughConstants.HTTP_NON_PROXY_HOST); if (bypassListParam == null) { bypassListStr = System.getProperty(PassThroughConstants.HTTP_NON_PROXY_HOST); } else { bypassListStr = (String) bypassListParam.getValue(); } if (bypassListStr != null) { proxyBypass = bypassListStr.split("\\|"); } Parameter proxyUsernameParam = transportOut.getParameter(PassThroughConstants.HTTP_PROXY_USERNAME); Parameter proxyPasswordParam = transportOut.getParameter(PassThroughConstants.HTTP_PROXY_PASSWORD); if (proxyUsernameParam != null) { proxyCredentials = new UsernamePasswordCredentials((String) proxyUsernameParam.getValue(), proxyPasswordParam != null ? (String) proxyPasswordParam.getValue() : ""); } } } return new ProxyConfig(proxy, proxyCredentials, proxyBypass, proxyProfileConfigMap); }