Lines Matching refs:host

69      *                                   though if the proxy is undefined the host string
103 * @param ctx A Context used to get the settings for the proxy host.
105 * @return Proxy (java.net) object containing the host name. If the
106 * user did not set a hostname it returns the default host.
107 * A null value means that no host is to be used.
111 String host = "";
114 host = uri.getHost();
117 if (!isLocalHost(host)) {
127 if (!proxyProperties.isExcluded(host)) {
137 * Return the proxy host set by the user.
138 * @param ctx A Context used to get the settings for the proxy host.
139 * @return String containing the host name. If the user did not set a host
140 * name it returns the default host. A null value means that no
141 * host is to be used.
142 * @deprecated Use standard java vm proxy values to find the host, port
159 * @deprecated Use standard java vm proxy values to find the host, port
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
181 String host = System.getProperty("http.proxyHost");
182 if (TextUtils.isEmpty(host)) return null;
183 return host;
188 * @return The port number to be used with the proxy host or -1 if there is
190 * @deprecated Use standard java vm proxy values to find the host, port and
227 private static final boolean isLocalHost(String host) {
228 if (host == null) {
232 if (host != null) {
233 if (host.equalsIgnoreCase("localhost")) {
236 if (NetworkUtils.numericToInetAddress(host).isLoopbackAddress()) {
325 String host = null;
329 host = p.getHost();
333 setHttpProxySystemProperty(host, port, exclList);
337 public static final void setHttpProxySystemProperty(String host, String port, String exclList) {
339 if (false) Log.d(TAG, "setHttpProxySystemProperty :"+host+":"+port+" - "+exclList);
340 if (host != null) {
341 System.setProperty("http.proxyHost", host);
342 System.setProperty("https.proxyHost", host);