List of usage examples for org.apache.http.impl.nio.reactor SSLIOSession isAppOutputReady
public synchronized boolean isAppOutputReady() throws IOException
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 w w . java 2 s. c om*/ 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 {//from w ww . j av a2 s .c o m synchronized (sslSession) { if (sslSession.isAppOutputReady()) { conn.produceOutput(this.handler); } sslSession.outboundTransport(); } } catch (IOException ex) { this.handler.exception(conn, ex); sslSession.shutdown(); } }