Example usage for org.apache.http.impl.nio SSLClientIOEventDispatch SSLClientIOEventDispatch

List of usage examples for org.apache.http.impl.nio SSLClientIOEventDispatch SSLClientIOEventDispatch

Introduction

In this page you can find the example usage for org.apache.http.impl.nio SSLClientIOEventDispatch SSLClientIOEventDispatch.

Prototype

public SSLClientIOEventDispatch(final NHttpClientHandler handler, final SSLContext sslcontext,
        final HttpParams params) 

Source Link

Document

Creates a new instance of this class to be used for dispatching I/O event notifications to the given protocol handler using the given SSLContext .

Usage

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);
}