Home
last modified time | relevance | path

Searched refs:proxySelector (Results 1 – 9 of 9) sorted by relevance

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DRouteSelectorTest.java73 private final RecordingProxySelector proxySelector = new RecordingProxySelector(); field in RouteSelectorTest
118 authenticator, proxyA, protocols, connectionSpecs, proxySelector); in explicitProxyTriesThatProxysAddressesOnly()
128 proxySelector.assertRequests(); // No proxy selector requests! in explicitProxyTriesThatProxysAddressesOnly()
133 authenticator, NO_PROXY, protocols, connectionSpecs, proxySelector); in explicitDirectProxy()
143 proxySelector.assertRequests(); // No proxy selector requests! in explicitDirectProxy()
149 proxySelector.proxies = null; in proxySelectorReturnsNull()
151 proxySelector.assertRequests(address.url().uri()); in proxySelectorReturnsNull()
172 proxySelector.assertRequests(address.url().uri()); in proxySelectorReturnsNoProxies()
178 proxySelector.proxies.add(proxyA); in proxySelectorReturnsMultipleProxies()
179 proxySelector.proxies.add(proxyB); in proxySelectorReturnsMultipleProxies()
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DAddress.java45 final ProxySelector proxySelector; field in Address
54 List<Protocol> protocols, List<ConnectionSpec> connectionSpecs, ProxySelector proxySelector) { in Address() argument
76 if (proxySelector == null) throw new IllegalArgumentException("proxySelector == null"); in Address()
77 this.proxySelector = proxySelector; in Address()
146 return proxySelector; in getProxySelector()
180 && this.proxySelector.equals(that.proxySelector) in equals()
196 result = 31 * result + proxySelector.hashCode(); in hashCode()
DOkHttpClient.java127 private ProxySelector proxySelector; field in OkHttpClient
161 this.proxySelector = okHttpClient.proxySelector; in OkHttpClient()
262 public OkHttpClient setProxySelector(ProxySelector proxySelector) { in setProxySelector() argument
263 this.proxySelector = proxySelector; in setProxySelector()
268 return proxySelector; in getProxySelector()
581 if (result.proxySelector == null) { in copyWithDefaults()
582 result.proxySelector = ProxySelector.getDefault(); in copyWithDefaults()
/external/apache-http/src/org/apache/http/impl/conn/
DProxySelectorRoutePlanner.java78 protected ProxySelector proxySelector; field in ProxySelectorRoutePlanner
96 proxySelector = prosel; in ProxySelectorRoutePlanner()
106 return this.proxySelector; in getProxySelector()
117 this.proxySelector = prosel; in setProxySelector()
195 ProxySelector psel = this.proxySelector; in determineProxy()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DAddressTest.java34 private RecordingProxySelector proxySelector = new RecordingProxySelector(); field in AddressTest
38 authenticator, null, protocols, connectionSpecs, proxySelector); in equalsAndHashcode()
40 authenticator, null, protocols, connectionSpecs, proxySelector); in equalsAndHashcode()
DSocksProxyTest.java66 @Test public void proxySelector() throws Exception { in proxySelector() method in SocksProxyTest
69 ProxySelector proxySelector = new ProxySelector() { in proxySelector() local
80 .setProxySelector(proxySelector); in proxySelector()
DOkHttpClientTest.java113 ProxySelector proxySelector = new RecordingProxySelector(); in copyWithDefaultsWhenDefaultIsGlobal() local
121 ProxySelector.setDefault(proxySelector); in copyWithDefaultsWhenDefaultIsGlobal()
126 assertSame(proxySelector, client.getProxySelector()); in copyWithDefaultsWhenDefaultIsGlobal()
DURLConnectionTest.java306 FakeProxySelector proxySelector = new FakeProxySelector(); in testRequestBodySurvivesRetries() local
307 proxySelector.proxies.add(server2.toProxyAddress()); in testRequestBodySurvivesRetries()
308 client.client().setProxySelector(proxySelector); in testRequestBodySurvivesRetries()
/external/apache-http/api/
Dapache-http-legacy-current.txt2912 field protected java.net.ProxySelector proxySelector;