public final class Platform extends Object
| Constructor and Description |
|---|
Platform() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterHandshake(SSLSocket sslSocket)
Called after the TLS handshake to release resources allocated by
configureTlsExtensions(javax.net.ssl.SSLSocket, java.lang.String, java.util.List<com.squareup.okhttp.Protocol>). |
void |
configureTlsExtensions(SSLSocket sslSocket,
String hostname,
List<Protocol> protocols) |
void |
connectSocket(Socket socket,
InetSocketAddress address,
int connectTimeout) |
static Platform |
get() |
String |
getPrefix()
Prefix used on custom headers.
|
String |
getSelectedProtocol(SSLSocket socket) |
void |
logW(String warning) |
void |
tagSocket(Socket socket) |
void |
untagSocket(Socket socket) |
public static Platform get()
public void logW(String warning)
public void tagSocket(Socket socket) throws SocketException
SocketExceptionpublic void untagSocket(Socket socket) throws SocketException
SocketExceptionpublic void configureTlsExtensions(SSLSocket sslSocket, String hostname, List<Protocol> protocols)
public void afterHandshake(SSLSocket sslSocket)
configureTlsExtensions(javax.net.ssl.SSLSocket, java.lang.String, java.util.List<com.squareup.okhttp.Protocol>).public void connectSocket(Socket socket, InetSocketAddress address, int connectTimeout) throws IOException
IOExceptionpublic String getPrefix()