/** * Enables the creation of a proxy configuration using * custom values. * * @param proxyHost the host name of the proxy * @param proxyPort the port of the proxy * @param proxyUser the username for the proxy * @param proxyPassword the password for the proxy * @param nonProxyHosts */ public ProxyConfiguration(String proxyHost, int proxyPort, String proxyUser, String proxyPassword, String nonProxyHosts) { this.proxyHost = proxyHost; this.proxyPort = proxyPort; this.proxyUser = proxyUser; this.proxyPassword = proxyPassword; this.nonProxyPattern = createNonProxyPattern(nonProxyHosts); }
/** * Enables the creation of a proxy configuration using * custom values. * * @param proxyHost the host name of the proxy * @param proxyPort the port of the proxy * @param proxyUser the username for the proxy * @param proxyPassword the password for the proxy * @param nonProxyHosts */ public ProxyConfiguration(String proxyHost, int proxyPort, String proxyUser, String proxyPassword, String nonProxyHosts) { this.proxyHost = proxyHost; this.proxyPort = proxyPort; this.proxyUser = proxyUser; this.proxyPassword = proxyPassword; this.nonProxyPattern = createNonProxyPattern(nonProxyHosts); }
/** * Default constructor. * Takes the system provided proxy settings. */ public ProxyConfiguration() { this.proxyHost = System.getProperty("http.proxyHost"); this.proxyPort = Integer.parseInt(System.getProperty("http.proxyPort", "80")); this.proxyUser = System.getProperty("http.proxyUser"); this.proxyPassword = System.getProperty("http.proxyPassword"); this.nonProxyPattern = createNonProxyPattern(System.getProperty("http.nonProxyHosts")); }
/** * Default constructor. * Takes the system provided proxy settings. */ public ProxyConfiguration() { this.proxyHost = System.getProperty("http.proxyHost"); this.proxyPort = Integer.parseInt(System.getProperty("http.proxyPort", "80")); this.proxyUser = System.getProperty("http.proxyUser"); this.proxyPassword = System.getProperty("http.proxyPassword"); this.nonProxyPattern = createNonProxyPattern(System.getProperty("http.nonProxyHosts")); }