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

WSTCPFramedConnectionHandler

public final class WSTCPFramedConnectionHandler extends Object implements com.sun.enterprise.web.connector.grizzly.Handler
author
Alexey Stashok

Fields Summary
private final WSTCPStreamAlgorithm
streamAlgorithm
private final com.sun.xml.ws.transport.tcp.server.IncomeMessageProcessor
messageProcessor
Constructors Summary
public WSTCPFramedConnectionHandler(WSTCPStreamAlgorithm streamAlgorithm)

        this.streamAlgorithm = streamAlgorithm;
        this.messageProcessor = IncomeMessageProcessor.getMessageProcessorForPort(streamAlgorithm.getPort());
    
Methods Summary
public voidattachChannel(java.nio.channels.SocketChannel socketChannel)

    
public inthandle(java.lang.Object request, int code)

        if (code == REQUEST_BUFFERED) {
            final ByteBuffer messageBuffer = streamAlgorithm.getByteBuffer();
            final SocketChannel socketChannel = streamAlgorithm.getSocketChannel();
            messageProcessor.process(messageBuffer, socketChannel);
        }
        
        return BREAK;