Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for addProxy (0.06 sec)

  1. 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)
  2. 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)
  3. compat/maven-embedder/src/main/java/org/apache/maven/cli/configuration/SettingsXmlConfigurationProcessor.java

            //    </proxy>
            //  </proxies>
    
            for (Proxy proxy : settings.getProxies()) {
                if (!proxy.isActive()) {
                    continue;
                }
    
                request.addProxy(proxy);
            }
    
            // <mirrors>
            //   <mirror>
            //     <id>nexus</id>
            //     <mirrorOf>*</mirrorOf>
            //     <url>http://repository.sonatype.org/content/groups/public</url>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java

            for (Proxy proxy : settings.getProxies()) {
                if (!proxy.isActive()) {
                    continue;
                }
    
                proxy = proxy.clone();
    
                request.addProxy(proxy);
            }
    
            // <mirrors>
            //   <mirror>
            //     <id>nexus</id>
            //     <mirrorOf>*</mirrorOf>
            //     <url>http://repository.sonatype.org/content/groups/public</url>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java

                }
            } catch (ComponentLookupException e) {
                // no ide workspace artifact resolution
            }
    
            return artifactResolver.resolve(request);
        }
    
        //    public void addProxy( String protocol, String host, int port, String username, String password,
        //                          String nonProxyHosts )
        //    {
        //        ProxyInfo proxyInfo = new ProxyInfo();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 31.6K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

            //    </proxy>
            //  </proxies>
    
            for (Proxy proxy : settings.getProxies()) {
                if (!proxy.isActive()) {
                    continue;
                }
                request.addProxy(new org.apache.maven.settings.Proxy(proxy));
            }
    
            // <mirrors>
            //   <mirror>
            //     <id>nexus</id>
            //     <mirrorOf>*</mirrorOf>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top