Best code examples for Java 8 Proxy class (java.net.Proxy)

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

Java 8 Proxy examples from Open Source projects
This code example shows how to use the following methods: address, type
69:	assertEquals(type, result.type()); 
70:	InetSocketAddress address = (InetSocketAddress) result.address(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
155:	new Proxy(Proxy.Type.SOCKS, InetSocketAddress.createUnresolved(host, 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: address, toString, type
111:	Proxy proxy = new Proxy(Proxy.Type.HTTP, address); 
-
113:	assertTrue(proxy.toString().indexOf(proxy.type().toString()) != -1); 
-
115:	assertTrue(proxy.toString().indexOf(proxy.address().toString()) != -1); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: address, type
83:	return (proxy != null && proxy.type() != Proxy.Type.DIRECT) 
84:	? ((InetSocketAddress) proxy.address()).getAddress() 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
73:	this.proxy = new Proxy(type, socketAddress); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
84:	assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("b", 80))), 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
81:	target.openConnection(new Proxy(Proxy.Type.HTTP, new InetSocketAddress("127.0.0.1", port))); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: type
90:	return address.sslSocketFactory != null && proxy.type() == Proxy.Type.HTTP; 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
24:	InetSocketAddress.createUnresolved(proxyHost, proxyPort))); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: type
64:	proxy = new Proxy(Proxy.Type.SOCKS, address); 
65:	assertEquals(Proxy.Type.SOCKS, proxy.type()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
92:	assertEquals(proxy.apply(uri), new Proxy(Proxy.Type.HTTP, new InetSocketAddress("proxy.example.com", 8080))); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: address, type
201:	if (proxy.type() == Proxy.Type.DIRECT) { 
-
205:	SocketAddress proxyAddress = proxy.address(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
34:	list.add(proxy); 
-
46:	InetSocketAddress.createUnresolved(proxyHost, proxyPort))); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: address, type
46:	Proxy.Type type = proxy.type(); 
-
48:	case HTTP: return "PROXY " + proxy.address().toString(); 
49:	case SOCKS: return "SOCKS5 " + proxy.address().toString(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
81:	assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("b", 80))), 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: type
61:	Proxy proxy = new Proxy(Proxy.Type.HTTP, address); 
62:	assertEquals(Proxy.Type.HTTP, proxy.type()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
34:	public static FixedProxySelector parseProxySettings(String proxyVar) { 
-
46:	} 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
64:	new Proxy(Proxy.Type.HTTP, new InetSocketAddress(proxyAHost, proxyAPort)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: type
461:	return proxy != null && proxy.type() != Proxy.Type.DIRECT; 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
155:	new Proxy(Proxy.Type.SOCKS, InetSocketAddress.createUnresolved(host, 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
52:	new Proxy(Proxy.Type.HTTP, 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
96:	final Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(this.proxyHost, this.proxyPort)); 
97:	this.connection = (HttpURLConnection) new URL(completeUrl).openConnection(proxy); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
158:	new Proxy(Proxy.Type.SOCKS, InetSocketAddress.createUnresolved(host, 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: address, type
59:	if (proxy.type() == Proxy.Type.HTTP) { 
60:	SocketAddress proxyAddr = proxy.address(); 
-
81:	SocketAddress proxyAddr = proxy.address(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: address
311:	SocketAddress proxyAddress = proxy.address(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: address, type
201:	if (proxy.type() == Proxy.Type.DIRECT) { 
-
205:	SocketAddress proxyAddress = proxy.address(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
81:	return new Proxy(Proxy.Type.HTTP, proxyAddress); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: address, type
207:	if (proxy.type() == Proxy.Type.DIRECT) { 
-
211:	SocketAddress proxyAddress = proxy.address(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
14:	Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("192.168.1.33", 8080)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
267:	proxy = new Proxy(type, InetSocketAddress.createUnresolved(host, 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
154:	proxy = new Proxy(Proxy.Type.HTTP, 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
158:	new Proxy(Proxy.Type.SOCKS, InetSocketAddress.createUnresolved(host, 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: address
125:	Long lastFailTime = this.failedDelayCache.get(proxy.address()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: address, type
104:	return (proxy != null && proxy.type() != Proxy.Type.DIRECT) 
105:	? ((InetSocketAddress) proxy.address()).getAddress() : InetAddress.getByName(url.getHost()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
149:	return new Proxy(Proxy.Type.valueOf(policy.getProxyServerType().toString()), 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: hashCode
86:	result = 31 * result + proxy.hashCode(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: address, type
106:	if (proxy.type() == Proxy.Type.SOCKS) { 
107:	if (proxy.address() instanceof InetSocketAddress) { 
108:	InetSocketAddress address = (InetSocketAddress) proxy.address(); 
Full Snippet Info
5
CodeRank
See Code Examples for Java 8 Proxy Methods: