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

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

Introduction

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

Prototype

public synchronized void outboundTransport() throws IOException 

Source Link

Usage

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

public void outputReady(final IOSession session) {
    DefaultNHttpServerConnection conn = (DefaultNHttpServerConnection) session.getAttribute(NHTTP_CONN);
    SSLIOSession sslSession = (SSLIOSession) session.getAttribute(SSL_SESSION);
    try {/*from w  ww  . j a v a  2 s .co m*/
        synchronized (sslSession) {
            if (sslSession.isAppOutputReady()) {
                conn.produceOutput(this.handler);
            }
            sslSession.outboundTransport();
        }
    } catch (IOException ex) {
        this.handler.exception(conn, ex);
        sslSession.shutdown();
    }
}

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

public void outputReady(final IOSession session) {
    DefaultNHttpClientConnection conn = (DefaultNHttpClientConnection) session.getAttribute(NHTTP_CONN);
    SSLIOSession sslSession = (SSLIOSession) session.getAttribute(SSL_SESSION);
    try {/* www . j a v a  2  s .  com*/
        synchronized (sslSession) {
            if (sslSession.isAppOutputReady()) {
                conn.produceOutput(this.handler);
            }
            sslSession.outboundTransport();
        }
    } catch (IOException ex) {
        this.handler.exception(conn, ex);
        sslSession.shutdown();
    }
}