191192193194195196197
* Do not use a proxy. This is the default anyway, but allowed for clarity. * * @return The new NoOpRequestProxy instance. */ public static NoOpRequestProxy notUsingProxy() { return new NoOpRequestProxy(); }
206207208209210211212213214215
String proxyHost = System.getProperty("http.proxyHost"); int proxyPort = getSystemProxyPort(); if (proxyHost.isEmpty()) { return new NoOpRequestProxy(); } return new RequestProxy(proxyHost, proxyPort); }