FileDocCategorySizeDatePackage
SSLAsyncOutputBuffer.javaAPI DocGlassfish v2 API3980Fri May 04 22:37:10 BST 2007com.sun.enterprise.web.connector.grizzly.ssl

SSLAsyncOutputBuffer

public class SSLAsyncOutputBuffer extends com.sun.enterprise.web.connector.grizzly.SocketChannelOutputBuffer
Buffer the bytes until the ByteChunk is full or the request is completed, and then delegate the SSL encryption to class SSLOutputBuffer
author
Jean-Francois Arcand

Fields Summary
protected ByteBuffer
outputBB
Encrypted Output ByteBuffer
protected SSLEngine
sslEngine
The SSLEngine used to write SSL data.
Constructors Summary
public SSLAsyncOutputBuffer(org.apache.coyote.Response response, int headerBufferSize, boolean useSocketBuffer)
Alternate constructor.

        super(response,headerBufferSize,useSocketBuffer);     
    
Methods Summary
public voidflushChannel(java.nio.ByteBuffer bb)
Flush the buffer by looping until the ByteBuffer is empty using SSLOutputBuffer

param
bb the ByteBuffer to write.

        SSLOutputWriter.flushChannel(socketChannel, bb, outputBB, sslEngine);
    
public java.nio.ByteBuffergetOutputBB()
Return the encrypted ByteBuffer used to handle response.

        return outputBB;
    
public javax.net.ssl.SSLEnginegetSSLEngine()
Set the SSLEngine.

        return sslEngine;
    
public voidsetOutputBB(java.nio.ByteBuffer outputBB)
Set the encrypted ByteBuffer used to handle response.

        this.outputBB = outputBB;
    
public voidsetSSLEngine(javax.net.ssl.SSLEngine sslEngine)
Get the SSLEngine.

        this.sslEngine = sslEngine;