com.sun.xml.ws.transport.tcp.grizzly
Class WSTCPStreamAlgorithm
java.lang.Object
com.sun.enterprise.web.connector.grizzly.algorithms.StreamAlgorithmBase
com.sun.xml.ws.transport.tcp.grizzly.WSTCPStreamAlgorithm
- All Implemented Interfaces:
- StreamAlgorithm
public final class WSTCPStreamAlgorithm
- extends StreamAlgorithmBase
- Author:
- Alexey Stashok
| Fields inherited from class com.sun.enterprise.web.connector.grizzly.algorithms.StreamAlgorithmBase |
contentLength, curLimit, curPosition, embeddedInGlassFish, handler, headerLength, lastStatePosition, primaryByteBuffer, socketChannel, state, useByteBufferView, useDirectByteBuffer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WSTCPStreamAlgorithm
public WSTCPStreamAlgorithm()
getHandler
public Handler getHandler()
parse
public boolean parse(ByteBuffer byteBuffer)
- Specified by:
parse in interface StreamAlgorithm- Specified by:
parse in class StreamAlgorithmBase
getSocketChannel
public SocketChannel getSocketChannel()
getByteBuffer
public ByteBuffer getByteBuffer()
setPort
public void setPort(int port)
- Algorith is usually created with Class.newInstance -> its port
is not set before,
but port value is required in handler's constructor
- Specified by:
setPort in interface StreamAlgorithm- Overrides:
setPort in class StreamAlgorithmBase
recycle
public void recycle()
- Specified by:
recycle in interface StreamAlgorithm- Overrides:
recycle in class StreamAlgorithmBase
Copyright © 2005-2011 Oracle Corporation. All Rights Reserved.