Package com.squareup.okhttp.internal
Class Platform
- java.lang.Object
-
- com.squareup.okhttp.internal.Platform
-
public final class Platform extends Object
Access to proprietary Android APIs. Doesn't use reflection.
-
-
Constructor Summary
Constructors Constructor Description Platform()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterHandshake(SSLSocket sslSocket)Called after the TLS handshake to release resources allocated byconfigureTlsExtensions(javax.net.ssl.SSLSocket, java.lang.String, java.util.List<com.squareup.okhttp.Protocol>).voidconfigureTlsExtensions(SSLSocket sslSocket, String hostname, List<Protocol> protocols)voidconnectSocket(Socket socket, InetSocketAddress address, int connectTimeout)static Platformget()StringgetPrefix()Prefix used on custom headers.StringgetSelectedProtocol(SSLSocket socket)voidlogW(String warning)voidtagSocket(Socket socket)voiduntagSocket(Socket socket)
-
-
-
Method Detail
-
get
public static Platform get()
-
logW
public void logW(String warning)
-
tagSocket
public void tagSocket(Socket socket) throws SocketException
- Throws:
SocketException
-
untagSocket
public void untagSocket(Socket socket) throws SocketException
- Throws:
SocketException
-
configureTlsExtensions
public void configureTlsExtensions(SSLSocket sslSocket, String hostname, List<Protocol> protocols)
-
afterHandshake
public void afterHandshake(SSLSocket sslSocket)
Called after the TLS handshake to release resources allocated byconfigureTlsExtensions(javax.net.ssl.SSLSocket, java.lang.String, java.util.List<com.squareup.okhttp.Protocol>).
-
connectSocket
public void connectSocket(Socket socket, InetSocketAddress address, int connectTimeout) throws IOException
- Throws:
IOException
-
getPrefix
public String getPrefix()
Prefix used on custom headers.
-
-