Lines Matching refs:proxy

54  * A convenience class for accessing the user and default proxy
64 * Used to notify an app that's caching the default connection proxy
65 * that either the default connection or its proxy has changed.
68 * <li><em>EXTRA_PROXY_INFO</em> - The ProxyProperties for the proxy. Non-null,
69 * though if the proxy is undefined the host string
78 public static final String EXTRA_PROXY_INFO = "proxy";
102 * Return the proxy object to be used for the URL given as parameter.
103 * @param ctx A Context used to get the settings for the proxy host.
137 * Return the proxy host set by the user.
138 * @param ctx A Context used to get the settings for the proxy host.
142 * @deprecated Use standard java vm proxy values to find the host, port
146 java.net.Proxy proxy = getProxy(ctx, null);
147 if (proxy == java.net.Proxy.NO_PROXY) return null;
149 return ((InetSocketAddress)(proxy.address())).getHostName();
156 * Return the proxy port set by the user.
157 * @param ctx A Context used to get the settings for the proxy port.
158 * @return The port number to use or -1 if no proxy is to be used.
159 * @deprecated Use standard java vm proxy values to find the host, port
163 java.net.Proxy proxy = getProxy(ctx, null);
164 if (proxy == java.net.Proxy.NO_PROXY) return -1;
166 return ((InetSocketAddress)(proxy.address())).getPort();
173 * Return the default proxy host specified by the carrier.
174 * @return String containing the host name or null if there is no proxy for
176 * @deprecated Use standard java vm proxy values to find the host, port and
178 * longer reports only mobile-data apn-based proxy values.
187 * Return the default proxy port specified by the carrier.
188 * @return The port number to be used with the proxy host or -1 if there is
189 * no proxy for this carrier.
190 * @deprecated Use standard java vm proxy values to find the host, port and
192 * longer reports only mobile-data apn-based proxy values.
204 * Returns the preferred proxy to be used by clients. This is a wrapper
212 * @return The preferred proxy to be used by clients, or null if there
213 * is no proxy.
307 HttpHost proxy = getPreferredHttpHost(mContext, target.getHostName());
308 if (proxy == null) {
311 return new HttpRoute(target, null, proxy, false);