ctx.setAttachment(e.getValue());
// Get the SslHandler in the current pipeline.
final SslHandler sslHandler = ctx.getPipeline().get(SslHandler.class);
sslHandler.setEnableRenegotiation(false);
// Get notified when SSL handshake is done.
ChannelFuture handshakeFuture = sslHandler.handshake();
handshakeFuture.addListener(new SslListener());
}
private static final class SslListener implements ChannelFutureListener {