Package org.jclouds.http.okhttp
Class DelegatingSocketFactory
java.lang.Object
javax.net.SocketFactory
org.jclouds.http.okhttp.DelegatingSocketFactory
The
DelegatingSocketFactory
class delegates instance of
SSLSocketFactory to SocketFactory.
Note:
OkHttpClient.Builder.sslSocketFactory(javax.net.ssl.SSLSocketFactory)
method deprecated.
Note: OkHttpClient.Builder.socketFactory(SocketFactory)
method doesn't accept javax.net.ssl.SSLSocketFactory.getDefault()
at
runtime, throws java.lang.IllegalArgumentException
.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Socket
configureSocket
(Socket socket) createSocket
(String host, int port) createSocket
(String host, int port, InetAddress localAddress, int localPort) createSocket
(InetAddress host, int port) createSocket
(InetAddress host, int port, InetAddress localAddress, int localPort) Methods inherited from class javax.net.SocketFactory
getDefault
-
Constructor Details
-
DelegatingSocketFactory
-
-
Method Details
-
createSocket
- Overrides:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(String host, int port, InetAddress localAddress, int localPort) throws IOException - Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(InetAddress host, int port, InetAddress localAddress, int localPort) throws IOException - Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
configureSocket
- Throws:
IOException
-