}
}
public void outputReady(final IOSession session) {
try {
NHttpClientIOTarget conn = (NHttpClientIOTarget) session.getAttribute(
ExecutionContext.HTTP_CONNECTION);
ensureNotNull(conn);
SSLIOSession sslSession =
(SSLIOSession) session.getAttribute(SSL_SESSION);
ensureNotNull(sslSession);
try {
if (sslSession.isAppOutputReady()) {
conn.produceOutput(this.handler);
}
sslSession.outboundTransport();
} catch (IOException ex) {
this.handler.exception(conn, ex);
sslSession.shutdown();