- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for addProxy (0.06 sec)
-
okhttp-testing-support/src/main/kotlin/okhttp3/FakeProxySelector.kt
import java.net.Proxy import java.net.ProxySelector import java.net.SocketAddress import java.net.URI class FakeProxySelector : ProxySelector() { val proxies: MutableList<Proxy> = mutableListOf() fun addProxy(proxy: Proxy): FakeProxySelector { proxies.add(proxy) return this } override fun select(uri: URI): List<Proxy> { // Don't handle 'socket' schemes, which the RI's Socket class may request (for SOCKS).
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.3K bytes - Viewed (0) -
compat/maven-settings-builder/src/test/java/org/apache/maven/settings/validation/DefaultSettingsValidatorTest.java
Settings settings = new Settings(); Proxy proxy = new Proxy(); String id = "foo"; proxy.setId(id); proxy.setHost("www.example.com"); settings.addProxy(proxy); settings.addProxy(proxy); SimpleProblemCollector problems = new SimpleProblemCollector(); validator.validate(settings, problems); assertEquals(1, problems.messages.size());
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 8.6K bytes - Viewed (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/configuration/SettingsXmlConfigurationProcessor.java
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 12.1K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 8.4K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 31.6K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/execution/MavenExecutionRequest.java
*/ ProfileActivation getProfileActivation(); // Proxies List<Proxy> getProxies(); MavenExecutionRequest setProxies(List<Proxy> proxies); MavenExecutionRequest addProxy(Proxy proxy); // Servers List<Server> getServers(); MavenExecutionRequest setServers(List<Server> servers); MavenExecutionRequest addServer(Server server); // Mirrors
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 18.4K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java
this.proxies = new ArrayList<>(proxies); } else { this.proxies = null; } return this; } @Override public MavenExecutionRequest addProxy(Proxy proxy) { Objects.requireNonNull(proxy, "proxy cannot be null"); for (Proxy p : getProxies()) { if (p.getId() != null && p.getId().equals(proxy.getId())) { return this;
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 31.7K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 38K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallTest.kt
client = client.newBuilder() .proxySelector( FakeProxySelector() .addProxy(server2.toProxyAddress()) .addProxy(Proxy.NO_PROXY), ) .build() server2.shutdown() val request = Request( url = server.url("/"),
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 142.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
// Use a misconfigured proxy to guarantee that the request is retried. client = client.newBuilder() .proxySelector( FakeProxySelector() .addProxy(server2.toProxyAddress()) .addProxy(Proxy.NO_PROXY), ) .build() server2.shutdown() val request = Request( url = server.url("/def"),
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 131.7K bytes - Viewed (0)