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

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

Introduction

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

Prototype

public synchronized boolean isInboundDone() 

Source Link

Usage

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

public void timeout(final IOSession session) {
    DefaultNHttpServerConnection conn = (DefaultNHttpServerConnection) session.getAttribute(NHTTP_CONN);
    SSLIOSession sslSession = (SSLIOSession) session.getAttribute(SSL_SESSION);
    this.handler.timeout(conn);
    synchronized (sslSession) {
        if (sslSession.isOutboundDone() && !sslSession.isInboundDone()) {
            // The session failed to terminate cleanly
            sslSession.shutdown();/*from  w w w .j  a va  2 s .c  o m*/
        }
    }
}

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

public void timeout(final IOSession session) {
    DefaultNHttpClientConnection conn = (DefaultNHttpClientConnection) session.getAttribute(NHTTP_CONN);
    SSLIOSession sslSession = (SSLIOSession) session.getAttribute(SSL_SESSION);
    this.handler.timeout(conn);
    synchronized (sslSession) {
        if (sslSession.isOutboundDone() && !sslSession.isInboundDone()) {
            // The session failed to terminate cleanly
            sslSession.shutdown();//  w  ww.jav a 2 s .  c  om
        }
    }
}