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:
- com.sun.enterprise.web.connector.grizzly.StreamAlgorithm
public final class WSTCPStreamAlgorithm
- extends com.sun.enterprise.web.connector.grizzly.algorithms.StreamAlgorithmBase
- Author:
- Alexey Stashok
| Nested classes/interfaces inherited from class com.sun.enterprise.web.connector.grizzly.algorithms.StreamAlgorithmBase |
com.sun.enterprise.web.connector.grizzly.algorithms.StreamAlgorithmBase.DummyHandler |
| 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 com.sun.enterprise.web.connector.grizzly.algorithms.StreamAlgorithmBase |
allocate, contentLength, dump, getPort, getReadTask, headerLength, postParse, preParse, rollbackParseState, setSocketChannel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WSTCPStreamAlgorithm
public WSTCPStreamAlgorithm()
getHandler
public com.sun.enterprise.web.connector.grizzly.Handler getHandler()
parse
public boolean parse(ByteBuffer byteBuffer)
- Specified by:
parse in interface com.sun.enterprise.web.connector.grizzly.StreamAlgorithm- Specified by:
parse in class com.sun.enterprise.web.connector.grizzly.algorithms.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 com.sun.enterprise.web.connector.grizzly.StreamAlgorithm- Overrides:
setPort in class com.sun.enterprise.web.connector.grizzly.algorithms.StreamAlgorithmBase
recycle
public void recycle()
- Specified by:
recycle in interface com.sun.enterprise.web.connector.grizzly.StreamAlgorithm- Overrides:
recycle in class com.sun.enterprise.web.connector.grizzly.algorithms.StreamAlgorithmBase
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.