FileDocCategorySizeDatePackage
WSTCPStreamAlgorithm.javaAPI DocExample3276Tue May 29 16:57:08 BST 2007com.sun.xml.ws.transport.tcp.grizzly

WSTCPStreamAlgorithm

public final class WSTCPStreamAlgorithm extends com.sun.enterprise.web.connector.grizzly.algorithms.StreamAlgorithmBase
author
Alexey Stashok

Fields Summary
private ByteBuffer
resultByteBuffer
Constructors Summary
Methods Summary
public java.nio.ByteBuffergetByteBuffer()

        return resultByteBuffer;
    
public com.sun.enterprise.web.connector.grizzly.HandlergetHandler()

        return handler;
    
public java.nio.channels.SocketChannelgetSocketChannel()

        return socketChannel;
    
public booleanparse(java.nio.ByteBuffer byteBuffer)

        byteBuffer.flip();
        this.resultByteBuffer = byteBuffer;
        return true;
    
public voidrecycle()

        resultByteBuffer = null;
        socketChannel = null;
        
        super.recycle();
    
public voidsetPort(int port)
Algorith is usually created with Class.newInstance -> its port is not set before, but port value is required in handler's constructor

        super.setPort(port);
        handler = new WSTCPFramedConnectionHandler(this);