- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 40 for socketFactory (8.98 sec)
-
samples/unixdomainsockets/src/main/java/okhttp3/unixdomainsockets/UnixDomainSocketFactory.java
import java.io.IOException; import java.net.InetAddress; import java.net.InetSocketAddress; import java.net.Socket; import javax.net.SocketFactory; import jnr.unixsocket.UnixSocketChannel; /** Impersonate TCP-style SocketFactory over UNIX domain sockets. */ public final class UnixDomainSocketFactory extends SocketFactory { private final File path; public UnixDomainSocketFactory(File path) { this.path = path; }
Java - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Dec 03 21:33:52 GMT 2023 - 2.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
} server.enqueue(MockResponse()) client = client.newBuilder() .socketFactory(uselessSocketFactory) .build() assertFailsWith<IllegalArgumentException> { getResponse(newRequest("/")) } client = client.newBuilder() .socketFactory(SocketFactory.getDefault()) .build() val response = getResponse(newRequest("/"))
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 131.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt
.build() } @Test fun clientAuthForWants() { val client = buildClient(clientCert, clientIntermediateCa.certificate) val socketFactory = buildServerSslSocketFactory() server.useHttps(socketFactory) server.requestClientAuth() server.enqueue( MockResponse.Builder() .body("abc") .build(), )
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Jan 14 10:20:09 GMT 2024 - 12.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/RouteFailureTest.kt
) { this.server1 = server this.server2 = server2 socketFactory = SpecificHostSocketFactory(InetSocketAddress(server.hostName, server.port)) client = clientTestRule.newClientBuilder() .dns(dns) .socketFactory(socketFactory) .eventListenerFactory(clientTestRule.wrap(listener)) .build() } @Test
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 11.9K bytes - Viewed (0) -
okcurl/src/main/kotlin/okhttp3/curl/Main.kt
} private fun createInsecureSslSocketFactory(trustManager: TrustManager): SSLSocketFactory = Platform.get().newSSLContext().apply { init(null, arrayOf(trustManager), null) }.socketFactory private fun createInsecureHostnameVerifier(): HostnameVerifier = HostnameVerifier { _, _ -> true } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.7K bytes - Viewed (1) -
okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSocketFactory.kt
import java.io.IOException import java.net.InetAddress import java.net.Socket import javax.net.SocketFactory /** * A [SocketFactory] that delegates calls. Sockets can be configured after creation by * overriding [.configureSocket]. */ open class DelegatingSocketFactory(private val delegate: SocketFactory) : SocketFactory() { @Throws(IOException::class) override fun createSocket(): Socket {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt
) fun proxyAuthenticator(): Authenticator = proxyAuthenticator @JvmName("-deprecated_socketFactory") @Deprecated( message = "moved to val", replaceWith = ReplaceWith(expression = "socketFactory"), level = DeprecationLevel.ERROR, ) fun socketFactory(): SocketFactory = socketFactory @JvmName("-deprecated_sslSocketFactory") @Deprecated( message = "moved to val",
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 04:21:33 GMT 2024 - 52K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt
proxy: Proxy? = null, proxySelector: ProxySelector = this.proxySelector, ): Address { return Address( uriHost = uriHost, uriPort = uriPort, dns = dns, socketFactory = SocketFactory.getDefault(), sslSocketFactory = null, hostnameVerifier = null, certificatePinner = null, proxyAuthenticator = proxyAuthenticator, proxy = proxy, protocols = protocols,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 7.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt
factory.close() } @Test @Disabled fun address() { val address: Address = factory.newAddress() val url: HttpUrl = address.url() val dns: Dns = address.dns() val socketFactory: SocketFactory = address.socketFactory() val proxyAuthenticator: Authenticator = address.proxyAuthenticator() val protocols: List<Protocol> = address.protocols() val connectionSpecs: List<ConnectionSpec> = address.connectionSpecs()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 13.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/ChannelSocketFactory.kt
* limitations under the License. */ package okhttp3 import java.net.InetAddress import java.net.Socket import java.nio.channels.SocketChannel import javax.net.SocketFactory class ChannelSocketFactory : SocketFactory() { override fun createSocket(): Socket { return SocketChannel.open().socket() } override fun createSocket( host: String, port: Int,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.4K bytes - Viewed (0)