Code examples for HttpHost

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
145:	if (!this.stripPort && host.getPort() > 0) { 
146:	authServer = host.toHostString(); 
-
148:	authServer = host.getHostName(); 
Full Snippet Info
8
CodeRank
234:	HttpHost proxy = new HttpHost(proxyHost, proxyPort); 
235:	httpParams.setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy); 
Full Snippet Info
7
CodeRank
111:	host = new HttpHost("localhost", serverPort, "http"); 
-
114:	final BasicPoolEntry entry = pool.createEntry(host, conn); 
Full Snippet Info
7
CodeRank
118:	HttpHost proxy = new HttpHost(proxyHost, proxyPort); 
Full Snippet Info
7
CodeRank
43:	proxy = new HttpHost(proxyHost, Integer.parseInt(proxyPort), "http"); 
-
50:	getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy); 
Full Snippet Info
7
CodeRank
48:	HttpHost target        = new HttpHost(targetUrl.getHost(), targetUrl.getPort(), HttpHost.DEFAULT_SCHEME_NAME); 
Full Snippet Info
7
CodeRank
31:	log.debug("Proxy: {}", proxy); 
32:	if (!host.equals(proxy.getHostName())) { 
Full Snippet Info
7
CodeRank
463:	HttpHost proxy = new HttpHost(proxyStr, 80); 
464:	client.getParams().setParameter(ConnRouteParams.DEFAULT_PROXY, proxy); 
Full Snippet Info
6
CodeRank
290:	params.setParameter(ClientPNames.DEFAULT_HOST, new HttpHost(host, 
291:	port, protocol)); 
Full Snippet Info
6
CodeRank
129:	this.host = new HttpHost(url_.getHost(), -1 == url_.getPort() ? url_.getDefaultPort() : url_.getPort(), url_.getProtocol()); 
Full Snippet Info
6
CodeRank
169:	ConnRouteParams.setDefaultProxy(params, new HttpHost(mmsConfig.getProxy(), mmsConfig.getPort())); 
Full Snippet Info
6
CodeRank
30:	HttpHost h = new HttpHost(u.getHost(), u.getPort()); 
31:	HttpResponse response = client.execute(h, r); 
Full Snippet Info
6
CodeRank
93:	HttpHost targetHost = new HttpHost(url); 
-
98:	new AuthScope(targetHost.getHostName(), targetHost.getPort()), 
Full Snippet Info
6
CodeRank
130:	HttpHost h = new HttpHost(u.getHost(), u.getPort()); 
131:	HttpResponse response = client.execute(h, r); 
Full Snippet Info
6
CodeRank
69:	HttpHost h = new HttpHost(remoteURL.getHost(), remoteURL.getPort()); 
-
71:	HttpResponse res = client.execute(h, r); 
Full Snippet Info
6
CodeRank
90:	HttpHost httpHost = new HttpHost(host, port, "http"); 
Full Snippet Info
6
CodeRank
118:	HttpHost proxy = new HttpHost(proxyHost, proxyPort); 
Full Snippet Info
6
CodeRank
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
216:	return new HttpHost(Proxy.getDefaultHost(), Proxy.getDefaultPort()); 
-
244:	client.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy); 
Full Snippet Info
6
CodeRank
59:	if (nonProxyHostPattern.matcher(target.getHostName()).matches()) { 
Full Snippet Info
4
CodeRank