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
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 |
Method Summary |
java.nio.ByteBuffer |
getByteBuffer()
|
com.sun.enterprise.web.connector.grizzly.Handler |
getHandler()
|
java.nio.channels.SocketChannel |
getSocketChannel()
|
boolean |
parse(java.nio.ByteBuffer byteBuffer)
|
void |
recycle()
|
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 |
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(java.nio.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 java.nio.channels.SocketChannel getSocketChannel()
getByteBuffer
public java.nio.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