Lines Matching refs:host

101      * @param ctx A Context used to get the settings for the proxy host.
103 * @return Proxy (java.net) object containing the host name. If the
104 * user did not set a hostname it returns the default host.
105 * A null value means that no host is to be used.
109 String host = "";
110 if ((url != null) && !isLocalHost(host)) {
125 * Return the proxy host set by the user.
126 * @param ctx A Context used to get the settings for the proxy host.
127 * @return String containing the host name. If the user did not set a host
128 * name it returns the default host. A null value means that no
129 * host is to be used.
130 * @deprecated Use standard java vm proxy values to find the host, port
147 * @deprecated Use standard java vm proxy values to find the host, port
161 * Return the default proxy host specified by the carrier.
162 * @return String containing the host name or null if there is no proxy for
164 * @deprecated Use standard java vm proxy values to find the host, port and
169 String host = System.getProperty("http.proxyHost");
170 if (TextUtils.isEmpty(host)) return null;
171 return host;
176 * @return The port number to be used with the proxy host or -1 if there is
178 * @deprecated Use standard java vm proxy values to find the host, port and
191 private static final boolean isLocalHost(String host) {
192 if (host == null) {
196 if (host != null) {
197 if (host.equalsIgnoreCase("localhost")) {
200 if (NetworkUtils.numericToInetAddress(host).isLoopbackAddress()) {
238 String host = null;
243 host = p.getHost();
248 setHttpProxySystemProperty(host, port, exclList, pacFileUrl);
252 public static final void setHttpProxySystemProperty(String host, String port, String exclList,
255 if (false) Log.d(TAG, "setHttpProxySystemProperty :"+host+":"+port+" - "+exclList);
256 if (host != null) {
257 System.setProperty("http.proxyHost", host);
258 System.setProperty("https.proxyHost", host);