List of usage examples for org.apache.http.impl.nio SSLClientIOEventDispatch SSLClientIOEventDispatch
public SSLClientIOEventDispatch(final NHttpClientHandler handler, final SSLContext sslcontext, final HttpParams params)
From source file:org.jclouds.http.httpnio.pool.NioHttpCommandConnectionPool.java
public static IOEventDispatch provideSSLClientEventDispatch(AsyncNHttpClientHandler handler, HttpParams params) throws NoSuchAlgorithmException, KeyManagementException { SSLContext context = SSLContext.getInstance("TLS"); context.init(null, null, null);//from www . j av a2 s . c o m return new SSLClientIOEventDispatch(handler, context, params); }