Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. maven-api-impl/src/test/java/org/apache/maven/internal/impl/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());
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  2. 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).
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  3. 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>
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Jun 19 15:04:04 GMT 2023
    - 8.1K bytes
    - Viewed (0)
  4. 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();
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Sep 14 11:48:15 GMT 2023
    - 31.6K bytes
    - Viewed (0)
  5. 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
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Dec 20 13:03:57 GMT 2023
    - 17.7K bytes
    - Viewed (0)
  6. 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;
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 31K bytes
    - Viewed (0)
  7. maven-core/src/test/resources/apiv4-repo/org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.jar

    public org.apache.maven.wagon.proxy.ProxyInfo getProxy(String); public org.apache.maven.wagon.authentication.AuthenticationInfo getAuthenticationInf(String); public org.apache.maven.artifact.repository.ArtifactRepository getMirror(String); public void addProxy(String, String, int, String, String, String); public void contextualize(org.codehaus.plexus.context.Context) throws org.codehaus.plexus.context.ContextException; public void setDownloadMonitor(org.apache.maven.wagon.events.TransferListener); public...
    Archive
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Sun Oct 02 08:41:25 GMT 2022
    - 160.1K bytes
    - Viewed (0)
  8. maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/maven-artifact-3.0-SNAPSHOT.jar

    public org.apache.maven.wagon.proxy.ProxyInfo getProxy(String); public org.apache.maven.wagon.authentication.AuthenticationInfo getAuthenticationInf(String); public org.apache.maven.artifact.repository.ArtifactRepository getMirror(String); public void addProxy(String, String, int, String, String, String); public void contextualize(org.codehaus.plexus.context.Context) throws org.codehaus.plexus.context.ContextException; public void setDownloadMonitor(org.apache.maven.wagon.events.TransferListener); public...
    Archive
    - Registered: Sun Apr 14 03:35:08 GMT 2024
    - Last Modified: Tue Oct 16 20:15:40 GMT 2007
    - 160.1K 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("/"),
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 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"),
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
Back to top