/** * Sets/augments the VM's proxy configuration. * * @param config */ public synchronized static void setupProxyParameters( ProxyConfiguration config ) { String proxyHost = config.getProxyHost(); String httpProxyHost = config.getHttpProxyHost(); String ftpProxyHost = config.getFtpProxyHost(); int proxyPort = config.getProxyPort() != null ? config.getProxyPort().intValue() : -1; int httpProxyPort = config.getHttpProxyPort() != null ? config.getHttpProxyPort().intValue() : -1; int ftpProxyPort = config.getFtpProxyPort() != null ? config.getFtpProxyPort().intValue() : -1; String proxyUser = config.getProxyUser(); String httpProxyUser = config.getHttpProxyUser(); String ftpProxyUser = config.getFtpProxyUser(); String proxyPassword = config.getProxyPassword(); String httpProxyPassword = config.getHttpProxyPassword(); String ftpProxyPassword = config.getFtpProxyPassword(); String nonProxyHosts = config.getNonProxyHosts(); String httpNonProxyHosts = config.getHttpNonProxyHosts(); String ftpNonProxyHosts = config.getFtpNonProxyHosts(); setupProxyParameters( proxyHost, httpProxyHost, ftpProxyHost, proxyPort, httpProxyPort, ftpProxyPort, proxyUser, httpProxyUser, ftpProxyUser, proxyPassword, httpProxyPassword, ftpProxyPassword, nonProxyHosts, httpNonProxyHosts, ftpNonProxyHosts, config.isOverrideSystemSettings() ); }