Lines Matching defs:proxy
321 // TODO: Should this be optimized to avoid fetching the global proxy for every request?
323 final java.net.Proxy proxy;
325 proxy = proxyInfo.makeProxy();
327 proxy = java.net.Proxy.NO_PROXY;
329 return openConnection(url, proxy);
336 * @param proxy the proxy through which the connection will be established.
339 * @throws IllegalArgumentException if the argument proxy is null.
343 public URLConnection openConnection(URL url, java.net.Proxy proxy) throws IOException {
344 if (proxy == null) throw new IllegalArgumentException("proxy is null");
347 return mUrlConnectionFactory.openConnection(url, socketFactory, proxy);