Best code examples for Android HttpHost class (org.apache.http.HttpHost)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android HttpHost class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android HttpHost examples from Open Source projects
This code example shows how to use the following methods: getHostName, getPort, toHostString
145:	if (!this.stripPort && host.getPort() > 0) { 
146:	authServer = host.toHostString(); 
-
148:	authServer = host.getHostName(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
234:	HttpHost proxy = new HttpHost(proxyHost, proxyPort); 
235:	httpParams.setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getHostName, getPort, getSchemeName
111:	host = new HttpHost("localhost", serverPort, "http"); 
-
114:	final BasicPoolEntry entry = pool.createEntry(host, conn); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
118:	HttpHost proxy = new HttpHost(proxyHost, proxyPort); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
43:	proxy = new HttpHost(proxyHost, Integer.parseInt(proxyPort), "http"); 
-
50:	getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
48:	HttpHost target        = new HttpHost(targetUrl.getHost(), targetUrl.getPort(), HttpHost.DEFAULT_SCHEME_NAME); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getHostName
31:	log.debug("Proxy: {}", proxy); 
32:	if (!host.equals(proxy.getHostName())) { 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
463:	HttpHost proxy = new HttpHost(proxyStr, 80); 
464:	client.getParams().setParameter(ConnRouteParams.DEFAULT_PROXY, proxy); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
290:	params.setParameter(ClientPNames.DEFAULT_HOST, new HttpHost(host, 
291:	port, protocol)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
129:	this.host = new HttpHost(url_.getHost(), -1 == url_.getPort() ? url_.getDefaultPort() : url_.getPort(), url_.getProtocol()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
169:	ConnRouteParams.setDefaultProxy(params, new HttpHost(mmsConfig.getProxy(), mmsConfig.getPort())); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
30:	HttpHost h = new HttpHost(u.getHost(), u.getPort()); 
31:	HttpResponse response = client.execute(h, r); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getHostName, getPort
93:	HttpHost targetHost = new HttpHost(url); 
-
98:	new AuthScope(targetHost.getHostName(), targetHost.getPort()), 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
130:	HttpHost h = new HttpHost(u.getHost(), u.getPort()); 
131:	HttpResponse response = client.execute(h, r); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
69:	HttpHost h = new HttpHost(remoteURL.getHost(), remoteURL.getPort()); 
-
71:	HttpResponse res = client.execute(h, r); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
90:	HttpHost httpHost = new HttpHost(host, port, "http"); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
118:	HttpHost proxy = new HttpHost(proxyHost, proxyPort); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getHostName, getPort, getSchemeName
145:	final String scheme = host.getSchemeName(); 
-
157:	final String hostname = host.getHostName(); 
158:	int port = host.getPort(); 
-
160:	if (host.getSchemeName().equalsIgnoreCase("http")) { 
-
162:	} else if (host.getSchemeName().equalsIgnoreCase("https")) { 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
216:	return new HttpHost(Proxy.getDefaultHost(), Proxy.getDefaultPort()); 
-
244:	client.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getHostName, getPort
100:	socket.connect(new InetSocketAddress(host.getHostName(), host.getPort()), this.timeout); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
33:	host = new HttpHost(hostName, port); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
194:	HttpHost h = new HttpHost(host, port); 
-
196:	HttpResponse res = client.execute(h, r); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
25:	HttpHost proxy = new HttpHost(APIMethod.proxyAddress, APIMethod.proxyPort, "http"); 
26:	client.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
99:	HttpHost host = new HttpHost(server, port, "https"); 
100:	JSONRPCClient client = JSONRPCClient.create(host, "/", username, password); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getPort, getSchemeName
46:	Args.notNull(host, "HTTP host"); 
47:	final int port = host.getPort(); 
-
51:	final String name = host.getSchemeName(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getHostName, getPort
153:	return new InetSocketAddress(host.getHostName(), host.getPort()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
58:	final HttpHost target = new HttpHost("localhost", 443, "https"); 
59:	Assert.assertSame(target, cache.getKey(target)); 
60:	Assert.assertEquals(target, cache.getKey(new HttpHost("localhost", -1, "https"))); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
136:	HttpHost proxy = new HttpHost( 
-
140:	client.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
61:	HttpHost targetHost = new HttpHost("localhost", port, "http"); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
94:	this.proxy = new HttpHost(host, port); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
117:	host = new HttpHost("localhost", serverPort, "http"); 
118:	conn = connFactory.create(host); 
-
120:	BasicPoolEntry entry = pool.createEntry(host, conn); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
58:	HttpHost proxy = new HttpHost(Proxy.getDefaultHost(), 
-
60:	httpClient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
120:	HttpHost proxy = new HttpHost(proxyHost, proxyPort); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
41:	HttpHost httpproxy = new HttpHost("127.0.0.1", 8118); 
42:	http.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, httpproxy); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getHostName, getPort, toHostString
146:	if (!this.stripPort && host.getPort() > 0) { 
147:	authServer = host.toHostString(); 
-
149:	authServer = host.getHostName(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getHostName, getPort
136:	AuthScope authScope = new AuthScope( authhost.getHostName(), authhost.getPort(), authScheme.getRealm(), 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getHostName, getPort
74:	new AuthScope(targetHost.getHostName(), targetHost.getPort()), 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getHostName, getPort
181:	targetHost.getHostName(), 
182:	targetHost.getPort() ) ); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getHostName, getPort
131:	targetHost.getHostName(), 
132:	targetHost.getPort())); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getHostName, getPort
125:	targetHost.getHostName(), 
126:	targetHost.getPort())); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getHostName, getPort
52:	credsProvider.getCredentials(new AuthScope(targetHost.getHostName(), targetHost.getPort())); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getHostName, getPort
70:	new AuthScope(targetHost.getHostName(), targetHost.getPort())); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: toHostString
78:	HttpHost proxy = new HttpHost( 
-
81:	Log.d(TAG, proxy.toHostString()); 
82:	mHttpParams.setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getHostName, getPort
45:	final InetSocketAddress address = new InetSocketAddress(socksProxy.getHostName(), socksProxy.getPort()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getHostName
59:	if (nonProxyHostPattern.matcher(target.getHostName()).matches()) { 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getHostName
243:	Args.notNull(host, "HTTP host"); 
-
262:	verifyHostname(sslsock, host.getHostName()); 
-
265:	return createLayeredSocket(sock, host.getHostName(), remoteAddress.getPort(), context); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: toURI
45:	String uri = HOST.toURI() + "/causali/getall"; 
-
49:	responseValue = new RestClient(HOST, USERNAME, PASSWORD).DoGetRequest(uri); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getHostName
60:	return this.httphost.getHostName() + ":" + getPort(); 
Full Snippet Info
4
CodeRank
Related Android HttpHost Questions & Answers:
See Code Examples for Android HttpHost Methods: