Example usage for org.apache.http.impl.nio.reactor SSLMode SERVER

List of usage examples for org.apache.http.impl.nio.reactor SSLMode SERVER

Introduction

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

Prototype

SSLMode SERVER

To view the source code for org.apache.http.impl.nio.reactor SSLMode SERVER.

Click Source Link

Usage

From source file:org.apache.axis2.transport.nhttp.SSLServerIOEventDispatch.java

public void connected(final IOSession session) {

    SSLIOSession sslSession = new SSLIOSession(session, this.sslcontext, this.sslHandler);

    LoggingNHttpServerConnection conn = new LoggingNHttpServerConnection(new LoggingIOSession(sslSession),
            new DefaultHttpRequestFactory(), new HeapByteBufferAllocator(), this.params);

    session.setAttribute(NHTTP_CONN, conn);
    session.setAttribute(SSL_SESSION, sslSession);

    this.handler.connected(conn);

    try {//from w ww  .  java2  s  .  c  o  m
        sslSession.bind(SSLMode.SERVER, this.params);
    } catch (SSLException ex) {
        this.handler.exception(conn, ex);
        sslSession.shutdown();
    }
}