String proxyUser = (String) properties.get("http-proxy-username"); String proxyPassword = (String) properties.get("http-proxy-password"); return new SimpleProxyManager(proxyHost, proxyPort, proxyUser, proxyPassword);
String proxyUser = (String) properties.get("http-proxy-username"); String proxyPassword = (String) properties.get("http-proxy-password"); return new SimpleProxyManager(proxyHost, proxyPort, proxyUser, proxyPassword);
public ISVNProxyManager getProxyManager(SVNURL url) throws SVNException { String host = url.getHost(); Map properties = getHostProperties(host); String proxyHost = (String) properties.get("http-proxy-host"); if (proxyHost == null || "".equals(proxyHost.trim())) { return null; } String proxyExceptions = (String) properties.get("http-proxy-exceptions"); if (proxyExceptions != null) { for(StringTokenizer exceptions = new StringTokenizer(proxyExceptions, ","); exceptions.hasMoreTokens();) { String exception = exceptions.nextToken().trim(); if (DefaultSVNOptions.matches(exception, host)) { return null; } } } String proxyPort = (String) properties.get("http-proxy-port"); String proxyUser = (String) properties.get("http-proxy-username"); String proxyPassword = (String) properties.get("http-proxy-password"); return new SimpleProxyManager(proxyHost, proxyPort, proxyUser, proxyPassword); }
public ISVNProxyManager getProxyManager(SVNURL url) throws SVNException { final ISVNHostOptions hostOptions = getHostOptionsProvider().getHostOptions(url); String proxyHost = hostOptions.getProxyHost(); if (proxyHost == null) { return null; } String proxyPort = hostOptions.getProxyPort(); String proxyUser = hostOptions.getProxyUserName(); String proxyPassword = hostOptions.getProxyPassword(); return new SimpleProxyManager(proxyHost, proxyPort, proxyUser, proxyPassword); }