Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for proxySelector (0.08 sec)

  1. okhttp/src/main/kotlin/okhttp3/Address.kt

      @JvmName("-deprecated_proxySelector")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "proxySelector"),
        level = DeprecationLevel.ERROR,
      )
      fun proxySelector(): ProxySelector = proxySelector
    
      @JvmName("-deprecated_proxy")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "proxy"),
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/SocksProxyTest.kt

        // The HTTP calls should share a single connection.
        assertThat(socksProxy.connectionCount()).isEqualTo(1)
      }
    
      @Test
      fun proxySelector() {
        server.enqueue(MockResponse.Builder().body("abc").build())
        val proxySelector: ProxySelector =
          object : ProxySelector() {
            override fun select(uri: URI) = listOf(socksProxy.proxy())
    
            override fun connectFailed(
              uri: URI,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/connection/RouteSelectorTest.kt

        dns.assertRequests(uriHost)
        proxySelector.assertRequests(address.url.toUri())
      }
    
      @Test fun proxySelectorReturnsMultipleProxies() {
        val address = factory.newAddress()
        proxySelector.proxies.add(proxyA)
        proxySelector.proxies.add(proxyB)
        val routeSelector = newRouteSelector(address)
        proxySelector.assertRequests(address.url.toUri())
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Mar 06 17:33:38 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/internal/aether/RepositorySystemSessionExtender.java

    import org.eclipse.aether.repository.ProxySelector;
    
    /**
     * Strictly internal component able to "extend" session in some way.
     *
     * @since 4.0.0
     */
    interface RepositorySystemSessionExtender {
        void extend(
                MavenExecutionRequest mavenExecutionRequest,
                Map<String, Object> configProperties,
                MirrorSelector mirrorSelector,
                ProxySelector proxySelector,
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/OkHttpClientTest.kt

            .proxySelector(FakeProxySelector())
            .build()
        assertThat(client.proxy).isNull()
        assertThat(client.proxySelector)
          .isInstanceOf(FakeProxySelector::class.java)
      }
    
      @Test fun sharesRouteDatabase() {
        val client =
          OkHttpClient.Builder()
            .build()
        val proxySelector: ProxySelector =
          object : ProxySelector() {
            override fun select(uri: URI): List<Proxy> = listOf()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt

          proxy = proxy,
          protocols = protocols,
          connectionSpecs = connectionSpecs,
          proxySelector = proxySelector,
        )
      }
    
      fun newHttpsAddress(
        uriHost: String = this.uriHost,
        uriPort: Int = this.uriPort,
        proxy: Proxy? = null,
        proxySelector: ProxySelector = this.proxySelector,
        sslSocketFactory: SSLSocketFactory? = this.sslSocketFactory,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/proxy/NullProxySelector.kt

     */
    package okhttp3.internal.proxy
    
    import java.io.IOException
    import java.net.Proxy
    import java.net.ProxySelector
    import java.net.SocketAddress
    import java.net.URI
    
    /**
     * A proxy selector that always returns the [Proxy.NO_PROXY].
     */
    object NullProxySelector : ProxySelector() {
      override fun select(uri: URI?): List<Proxy> {
        requireNotNull(uri) { "uri must not be null" }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/internal/http/RecordingProxySelector.kt

    import assertk.assertions.containsExactly
    import java.io.IOException
    import java.net.InetSocketAddress
    import java.net.Proxy
    import java.net.ProxySelector
    import java.net.SocketAddress
    import java.net.URI
    import okhttp3.internal.format
    
    class RecordingProxySelector : ProxySelector() {
      @JvmField val proxies = mutableListOf<Proxy>()
    
      private val requestedUris = mutableListOf<URI>()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/RouteFailureTest.kt

      fun proxyMoveTest(cleanShutdown: Boolean) {
        // Define a single Proxy at myproxy:8008 that will artificially move during the test
        val proxySelector = RecordingProxySelector()
        val socketAddress = InetSocketAddress.createUnresolved("myproxy", 8008)
        proxySelector.proxies.add(Proxy(Proxy.Type.HTTP, socketAddress))
    
        // Define two host names for the DNS routing of fake proxy servers
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue May 14 17:48:07 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/internal/aether/LegacyRepositorySystemSessionExtender.java

                Map<String, Object> configProperties,
                MirrorSelector mirrorSelector,
                ProxySelector proxySelector,
                AuthenticationSelector authenticationSelector) {
            injectMirror(mavenExecutionRequest.getRemoteRepositories(), mavenExecutionRequest.getMirrors());
            injectProxy(proxySelector, mavenExecutionRequest.getRemoteRepositories());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top