Package com.squareup.okhttp
Class HttpsHandler
- java.lang.Object
-
- java.net.URLStreamHandler
-
- com.squareup.okhttp.HttpHandler
-
- com.squareup.okhttp.HttpsHandler
-
public final class HttpsHandler extends HttpHandler
-
-
Constructor Summary
Constructors Constructor Description HttpsHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OkUrlFactorycreateHttpsOkUrlFactory(Proxy proxy)Creates an OkHttpClient suitable for creatingHttpsURLConnectioninstances on Android.protected intgetDefaultPort()Returns the default port of the protocol used by the handled URL.protected OkUrlFactorynewOkUrlFactory(Proxy proxy)-
Methods inherited from class com.squareup.okhttp.HttpHandler
createHttpOkUrlFactory, openConnection, openConnection
-
Methods inherited from class java.net.URLStreamHandler
equals, getHostAddress, hashCode, hostsEqual, parseURL, sameFile, setURL, setURL, toExternalForm
-
-
-
-
Method Detail
-
getDefaultPort
protected int getDefaultPort()
Description copied from class:URLStreamHandlerReturns the default port of the protocol used by the handled URL. The default implementation always returns-1.- Overrides:
getDefaultPortin classHttpHandler
-
newOkUrlFactory
protected OkUrlFactory newOkUrlFactory(Proxy proxy)
- Overrides:
newOkUrlFactoryin classHttpHandler
-
createHttpsOkUrlFactory
public static OkUrlFactory createHttpsOkUrlFactory(Proxy proxy)
Creates an OkHttpClient suitable for creatingHttpsURLConnectioninstances on Android.
-
-