1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-17 08:42:25 +03:00

Enhance Javadocs on OkHttpClient.setSocketFactory

This commit is contained in:
Reinhard Naegele
2015-05-11 11:12:41 +02:00
parent a63805821e
commit 616aafcd49

View File

@@ -351,7 +351,10 @@ public class OkHttpClient implements Cloneable {
}
/**
* Sets the socket factory used to create connections.
* Sets the socket factory used to create connections. OkHttp only uses
* the parameterless {@link SocketFactory#createSocket() createSocket()}
* method to create unconnected sockets. Overriding this method,
* e. g., allows the socket to be bound to a specific local address.
*
* <p>If unset, the {@link SocketFactory#getDefault() system-wide default}
* socket factory will be used.