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
Modifier and Type Method Description protected intgetDefaultPort()Returns the default port of the protocol used by the handled URL.protected OkHttpClientnewOkHttpClient(Proxy proxy)Methods inherited from class com.squareup.okhttp.HttpHandler
openConnection, openConnectionMethods inherited from class java.net.URLStreamHandler
equals, getHostAddress, hashCode, hostsEqual, parseURL, sameFile, setURL, setURL, toExternalForm
-
Constructor Details
-
HttpsHandler
public HttpsHandler()
-
-
Method Details
-
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
-
newOkHttpClient
- Overrides:
newOkHttpClientin classHttpHandler
-