Example usage for org.apache.http.impl.nio.reactor SSLIOSession inboundTransport

List of usage examples for org.apache.http.impl.nio.reactor SSLIOSession inboundTransport

Introduction

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

Prototype

public synchronized void inboundTransport() throws IOException 

Source Link

Usage

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

public void inputReady(final IOSession session) {
    DefaultNHttpServerConnection conn = (DefaultNHttpServerConnection) session.getAttribute(NHTTP_CONN);
    SSLIOSession sslSession = (SSLIOSession) session.getAttribute(SSL_SESSION);
    try {//  w w w  .  java2  s  .  c om
        synchronized (sslSession) {
            if (sslSession.isAppInputReady()) {
                conn.consumeInput(this.handler);
            }
            sslSession.inboundTransport();
        }
    } catch (IOException ex) {
        this.handler.exception(conn, ex);
        sslSession.shutdown();
    }
}

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

public void inputReady(final IOSession session) {
    DefaultNHttpClientConnection conn = (DefaultNHttpClientConnection) session.getAttribute(NHTTP_CONN);
    SSLIOSession sslSession = (SSLIOSession) session.getAttribute(SSL_SESSION);
    try {// w  ww  .ja va 2s .  c  o m
        synchronized (sslSession) {
            while (sslSession.isAppInputReady()) {
                conn.consumeInput(this.handler);
            }
            sslSession.inboundTransport();
        }
    } catch (IOException ex) {
        this.handler.exception(conn, ex);
        sslSession.shutdown();
    }
}