Home
last modified time | relevance | path

Searched refs:ProxySelector (Results 1 – 11 of 11) sorted by relevance

/libcore/ojluni/src/main/java/java/net/
DProxySelector.java60 public abstract class ProxySelector { class
68 private static ProxySelector theProxySelector;
73 if (c != null && ProxySelector.class.isAssignableFrom(c)) {
74 theProxySelector = (ProxySelector) c.newInstance();
91 public static ProxySelector getDefault() { in getDefault()
114 public static void setDefault(ProxySelector ps) { in setDefault()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DProxySelectorTest.java22 import java.net.ProxySelector;
61 private ProxySelector selector = ProxySelector.getDefault();
83 ProxySelector selector1 = ProxySelector.getDefault(); in test_getDefault()
86 ProxySelector selector2 = ProxySelector.getDefault(); in test_getDefault()
94 ProxySelector originalSelector = ProxySelector.getDefault(); in test_setDefaultLjava_net_ProxySelector()
96 ProxySelector newSelector = new MockProxySelector(); in test_setDefaultLjava_net_ProxySelector()
97 ProxySelector.setDefault(newSelector); in test_setDefaultLjava_net_ProxySelector()
98 assertSame(newSelector, ProxySelector.getDefault()); in test_setDefaultLjava_net_ProxySelector()
100 ProxySelector.setDefault(null); in test_setDefaultLjava_net_ProxySelector()
101 assertSame(null, ProxySelector.getDefault()); in test_setDefaultLjava_net_ProxySelector()
[all …]
DURLTest.java27 import java.net.ProxySelector;
1108 static class MockProxySelector extends ProxySelector {
/libcore/luni/src/test/java/libcore/java/net/
DFtpURLConnectionTest.java33 import java.net.ProxySelector;
198 ProxySelector defaultProxySelector = ProxySelector.getDefault(); in testConnectOverProxy_implicit_http_fails()
204 ProxySelector.setDefault(proxySelector); in testConnectOverProxy_implicit_http_fails()
219 ProxySelector.setDefault(defaultProxySelector); in testConnectOverProxy_implicit_http_fails()
240 ProxySelector defaultProxySelector = ProxySelector.getDefault(); in testInputUrlWithSpacesViaProxySelector()
243 ProxySelector.setDefault(proxySelector); in testInputUrlWithSpacesViaProxySelector()
248 ProxySelector.setDefault(defaultProxySelector); in testInputUrlWithSpacesViaProxySelector()
331 static class SingleProxySelector extends ProxySelector {
DSocketTest.java29 import java.net.ProxySelector;
445 ProxySelector ps = ProxySelector.getDefault(); in testSocketWithProxySet()
447 ProxySelector.setDefault(new ProxySelector() { in testSocketWithProxySet()
465 ProxySelector.setDefault(ps); in testSocketWithProxySet()
DProxySelectorTest.java21 import java.net.ProxySelector;
29 private ProxySelector proxySelector;
39 proxySelector = ProxySelector.getDefault(); in setUp()
DOldURLTest.java29 import java.net.ProxySelector;
571 static class MockProxySelector extends ProxySelector {
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/
DHttpURLConnectionTest.java26 import java.net.ProxySelector;
121 static class TestProxySelector extends ProxySelector {
234 ProxySelector defPS = ProxySelector.getDefault(); in testUsingProxySelector()
236 ProxySelector.setDefault( in testUsingProxySelector()
268 ProxySelector.setDefault(defPS); in testUsingProxySelector()
/libcore/ojluni/src/main/java/sun/net/www/protocol/ftp/
DFtpURLConnection.java46 import java.net.ProxySelector;
235 ProxySelector sel = java.security.AccessController.doPrivileged( in connect()
236 new java.security.PrivilegedAction<ProxySelector>() { in connect()
237 public ProxySelector run() { in connect()
238 return ProxySelector.getDefault(); in connect()
/libcore/ojluni/src/main/java/sun/net/spi/
DDefaultProxySelector.java31 import java.net.ProxySelector;
56 public class DefaultProxySelector extends ProxySelector {
/libcore/
Dopenjdk_java_files.bp315 "ojluni/src/main/java/java/net/ProxySelector.java",