FileDocCategorySizeDatePackage
AsyncWebStreamAlgorithm.javaAPI DocGlassfish v2 API3516Fri May 04 22:36:56 BST 2007com.sun.grizzly.asyncweb

AsyncWebStreamAlgorithm

public class AsyncWebStreamAlgorithm extends com.sun.enterprise.web.connector.grizzly.algorithms.StreamAlgorithmBase
AsyncWeb customized algorithm. The difference between this algorithm and the NoParsingAlgorithm is that ByteBuffer aren't flipped until we wrap them using the MINA ByteBuffer implementation.
author
Jeanfrancois Arcand

Fields Summary
Constructors Summary
public AsyncWebStreamAlgorithm()

        handler = new DummyHandler();
    
Methods Summary
public com.sun.enterprise.web.connector.grizzly.HandlergetHandler()
Return the Handler used by this algorithm.

        return handler;
    
public java.lang.ClassgetReadTask(com.sun.enterprise.web.connector.grizzly.SelectorThread selectorThread)
Return the class responsible for handling OP_READ.

        return com.sun.enterprise.web.connector.grizzly.XAReadTask.class;
    
public booleanparse(java.nio.ByteBuffer byteBuffer)
Do not parse the bytes and automatically flip the ByteBuffer

        curLimit = byteBuffer.limit();
        curPosition = byteBuffer.position();
        return true;
    
public voidrecycle()
Recycle this object.

        super.recycle();
        
        socketChannel = null;