Home | History | Annotate | Download | only in conn

Lines Matching refs:Proxy

37 import java.net.Proxy;
59 * By default, it will pick up the proxy settings of the JVM, either
71 /** The proxy selector to use, or <code>null</code> for system default. */
76 * Creates a new proxy selector route planner.
79 * @param prosel the proxy selector, or
95 * Obtains the proxy selector to use.
97 * @return the proxy selector, or <code>null</code> for the system default
105 * Sets the proxy selector to use.
107 * @param prosel the proxy selector, or
143 final HttpHost proxy = determineProxy(target, request, context);
151 if (proxy == null) {
154 route = new HttpRoute(target, local, proxy, secure);
161 * Determines a proxy for the given target.
167 * @return the proxy to use, or <code>null</code> for a direct route
170 * in case of system proxy settings that cannot be handled
177 // the proxy selector can be 'unset', so we better deal with null here
191 List<Proxy> proxies = psel.select(targetURI);
193 Proxy p = chooseProxy(proxies, target, request, context);
196 if (p.type() == Proxy.Type.HTTP) {
200 ("Unable to handle non-Inet proxy address: "+p.address());
233 * Chooses a proxy from a list of available proxies.
234 * The default implementation just picks the first non-SOCKS proxy
236 * {@link Proxy#NO_PROXY Proxy.NO_PROXY} is returned.
238 * such as proxy rotation if there are multiple options.
246 * @return a proxy of type {@link Proxy.Type#DIRECT DIRECT}
247 * or {@link Proxy.Type#HTTP HTTP}, never <code>null</code>
249 protected Proxy chooseProxy(List<Proxy> proxies,
256 ("Proxy list must not be empty.");
259 Proxy result = null;
264 Proxy p = proxies.get(i);
280 //@@@ log as warning or info that only a socks proxy is available?
283 result = Proxy.NO_PROXY;