Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for ServerSocketFactory (0.34 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingServerSocketFactory.kt

    import java.net.InetAddress
    import java.net.ServerSocket
    import javax.net.ServerSocketFactory
    
    /**
     * A [ServerSocketFactory] that delegates calls. Sockets can be configured after creation by
     * overriding [.configureServerSocket].
     */
    open class DelegatingServerSocketFactory(private val delegate: ServerSocketFactory) : ServerSocketFactory() {
      @Throws(IOException::class)
      override fun createServerSocket(): ServerSocket {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/bbottema/javasocksproxyserver/TestRecordingSocksServer.java

            protected final int port;
            private final ServerSocketFactory serverSocketFactory;
    
            public ServerProcess(int port, ServerSocketFactory serverSocketFactory) {
                this.port = port;
                this.serverSocketFactory = serverSocketFactory;
            }
    
            @Override
            public void run() {
                LOGGER.debug("SOCKS server started...");
                try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockWebServer.kt

        message = "moved to var",
        replaceWith =
          ReplaceWith(
            expression = "run { this.serverSocketFactory = serverSocketFactory }",
          ),
        level = DeprecationLevel.ERROR,
      )
      fun setServerSocketFactory(serverSocketFactory: ServerSocketFactory) {
        delegate.serverSocketFactory = serverSocketFactory
      }
    
      fun url(path: String): HttpUrl {
        before() // This implicitly starts the delegate.
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/KotlinSourceModernTest.kt

        var port: Int = mockWebServer.port
        var hostName: String = mockWebServer.hostName
        hostName = mockWebServer.hostName
        val toProxyAddress: Proxy = mockWebServer.toProxyAddress()
        mockWebServer.serverSocketFactory = ServerSocketFactory.getDefault()
        val url: HttpUrl = mockWebServer.url("")
        mockWebServer.bodyLimit = 0L
        mockWebServer.protocolNegotiationEnabled = false
        mockWebServer.protocols = listOf()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. okhttp-tls/src/test/java/okhttp3/tls/HandshakeCertificatesTest.kt

          strings.any { it.matches(Regex("[A-Z]+=Entrust.*")) }
        }
      }
    
      private fun startTlsServer(): InetSocketAddress {
        val serverSocketFactory = ServerSocketFactory.getDefault()
        serverSocket = serverSocketFactory.createServerSocket()
        val serverAddress = InetAddress.getByName("localhost")
        serverSocket!!.bind(InetSocketAddress(serverAddress, 0), 50)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/http/CancelTest.kt

        // required. These socket factories explicitly set the buffer sizes on sockets created.
        server = MockWebServer()
        server.serverSocketFactory =
          object : DelegatingServerSocketFactory(ServerSocketFactory.getDefault()) {
            @Throws(IOException::class)
            override fun configureServerSocket(serverSocket: ServerSocket): ServerSocket {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  7. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

      var bodyLimit: Long = Long.MAX_VALUE
    
      var serverSocketFactory: ServerSocketFactory? = null
        @Synchronized get() {
          if (field == null && started) {
            field = ServerSocketFactory.getDefault() // Build the default value lazily.
          }
          return field
        }
    
        @Synchronized set(value) {
          check(!started) { "serverSocketFactory must not be set after start()" }
          field = value
        }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/http/ThreadInterruptTest.kt

        // Sockets on some platforms can have large buffers that mean writes do not block when
        // required. These socket factories explicitly set the buffer sizes on sockets created.
        server = MockWebServer()
        server.serverSocketFactory =
          object : DelegatingServerSocketFactory(getDefault()) {
            @Throws(SocketException::class)
            override fun configureServerSocket(serverSocket: ServerSocket): ServerSocket {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

    import java.net.URL
    import java.nio.charset.Charset
    import java.security.KeyPair
    import java.security.Principal
    import java.security.cert.Certificate
    import java.security.cert.X509Certificate
    import javax.net.ServerSocketFactory
    import javax.net.SocketFactory
    import javax.net.ssl.HostnameVerifier
    import javax.net.ssl.SSLSocket
    import javax.net.ssl.SSLSocketFactory
    import javax.net.ssl.X509KeyManager
    import javax.net.ssl.X509TrustManager
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        var port: Int = mockWebServer.port
        var hostName: String = mockWebServer.hostName
        hostName = mockWebServer.hostName
        val toProxyAddress: Proxy = mockWebServer.toProxyAddress()
        mockWebServer.serverSocketFactory = ServerSocketFactory.getDefault()
        val url: HttpUrl = mockWebServer.url("")
        mockWebServer.bodyLimit = 0L
        mockWebServer.protocolNegotiationEnabled = false
        mockWebServer.protocols = listOf()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
Back to top