/** * Encrypt the response and flush it using <code>OutputWriter</code> */ public static void flushChannel(SocketChannel socketChannel, ByteBuffer bb) throws IOException{ SSLWorkerThread workerThread = (SSLWorkerThread)Thread.currentThread(); SSLEngine sslEngine = workerThread.getSSLEngine(); ByteBuffer outputBB = workerThread.getOutputBB(); flushChannel(socketChannel,bb,outputBB,sslEngine); }
outputBB = workerThread.getOutputBB();
if (workerThread.getOutputBB() == null) { outputBB = ByteBuffer.allocate(inputBBSize); } else { outputBB = workerThread.getOutputBB();