Searched refs:ProxySelector (Results 1 – 12 of 12) sorted by relevance
60 public abstract class ProxySelector { class68 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()
22 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 …]
27 import java.net.ProxySelector;1108 static class MockProxySelector extends ProxySelector {
33 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 {
29 import java.net.ProxySelector;445 ProxySelector ps = ProxySelector.getDefault(); in testSocketWithProxySet()447 ProxySelector.setDefault(new ProxySelector() { in testSocketWithProxySet()465 ProxySelector.setDefault(ps); in testSocketWithProxySet()
21 import java.net.ProxySelector;29 private ProxySelector proxySelector;39 proxySelector = ProxySelector.getDefault(); in setUp()
29 import java.net.ProxySelector;571 static class MockProxySelector extends ProxySelector {
50 import java.net.ProxySelector;2124 ProxySelector originalSelector = ProxySelector.getDefault();2126 ProxySelector.setDefault(new ProxySelector() {2157 ProxySelector.setDefault(originalSelector);
26 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()
46 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()
31 import java.net.ProxySelector;56 public class DefaultProxySelector extends ProxySelector {
308 "ojluni/src/main/java/java/net/ProxySelector.java",