Java Code Examples for com.squareup.okhttp.OkHttpClient#getSslSocketFactory()

The following examples show how to use com.squareup.okhttp.OkHttpClient#getSslSocketFactory() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: HttpURLConnectionImpl.java    From cordova-android-chromeview with Apache License 2.0 5 votes vote down vote up
public HttpURLConnectionImpl(URL url, OkHttpClient client, OkResponseCache responseCache,
    Set<Route> failedRoutes) {
  super(url);
  this.followProtocolRedirects = client.getFollowProtocolRedirects();
  this.failedRoutes = failedRoutes;
  this.requestedProxy = client.getProxy();
  this.proxySelector = client.getProxySelector();
  this.cookieHandler = client.getCookieHandler();
  this.connectionPool = client.getConnectionPool();
  this.sslSocketFactory = client.getSslSocketFactory();
  this.hostnameVerifier = client.getHostnameVerifier();
  this.responseCache = responseCache;
}
 
Example 2
Source File: HttpURLConnectionImpl.java    From phonegap-plugin-loading-spinner with Apache License 2.0 5 votes vote down vote up
public HttpURLConnectionImpl(URL url, OkHttpClient client, OkResponseCache responseCache,
    Set<Route> failedRoutes) {
  super(url);
  this.followProtocolRedirects = client.getFollowProtocolRedirects();
  this.failedRoutes = failedRoutes;
  this.requestedProxy = client.getProxy();
  this.proxySelector = client.getProxySelector();
  this.cookieHandler = client.getCookieHandler();
  this.connectionPool = client.getConnectionPool();
  this.sslSocketFactory = client.getSslSocketFactory();
  this.hostnameVerifier = client.getHostnameVerifier();
  this.responseCache = responseCache;
}