public final class WSTCPStreamAlgorithm
extends com.sun.enterprise.web.connector.grizzly.algorithms.StreamAlgorithmBase
| Constructor and Description |
|---|
WSTCPStreamAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
getByteBuffer() |
com.sun.enterprise.web.connector.grizzly.Handler |
getHandler() |
SocketChannel |
getSocketChannel() |
boolean |
parse(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
|
public com.sun.enterprise.web.connector.grizzly.Handler getHandler()
public boolean parse(ByteBuffer byteBuffer)
parse in interface com.sun.enterprise.web.connector.grizzly.StreamAlgorithmparse in class com.sun.enterprise.web.connector.grizzly.algorithms.StreamAlgorithmBasepublic SocketChannel getSocketChannel()
public ByteBuffer getByteBuffer()
public void setPort(int port)
setPort in interface com.sun.enterprise.web.connector.grizzly.StreamAlgorithmsetPort in class com.sun.enterprise.web.connector.grizzly.algorithms.StreamAlgorithmBasepublic void recycle()
recycle in interface com.sun.enterprise.web.connector.grizzly.StreamAlgorithmrecycle in class com.sun.enterprise.web.connector.grizzly.algorithms.StreamAlgorithmBaseCopyright © 2005–2018 Oracle Corporation. All rights reserved.