|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.grizzly.http.algorithms.StreamAlgorithmBase
com.sun.grizzly.http.algorithms.NoParsingAlgorithm
public class NoParsingAlgorithm
This algorithm doesn't parse the bytes, delegating the work to the InternalInputBuffer.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sun.grizzly.http.algorithms.StreamAlgorithmBase |
|---|
StreamAlgorithmBase.DummyHandler |
| Field Summary |
|---|
| Fields inherited from class com.sun.grizzly.http.algorithms.StreamAlgorithmBase |
|---|
contentLength, curLimit, curPosition, handler, headerLength, lastStatePosition, primaryByteBuffer, socketChannel, state, useByteBufferView, useDirectByteBuffer |
| Constructor Summary | |
|---|---|
NoParsingAlgorithm()
|
|
| Method Summary | |
|---|---|
Interceptor |
getHandler()
Return the Interceptor used by this algorithm. |
boolean |
parse(java.nio.ByteBuffer byteBuffer)
Do not parse the bytes and automatically flip the ByteBuffer |
java.nio.ByteBuffer |
preParse(java.nio.ByteBuffer byteBuffer)
Do nothing, as the ByteBufferInputStream will take care of reading the missing bytes. |
void |
recycle()
Recycle this object. |
| Methods inherited from class com.sun.grizzly.http.algorithms.StreamAlgorithmBase |
|---|
allocate, contentLength, dump, getPort, headerLength, postParse, rollbackParseState, setChannel, setPort |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NoParsingAlgorithm()
| Method Detail |
|---|
public java.nio.ByteBuffer preParse(java.nio.ByteBuffer byteBuffer)
preParse in interface StreamAlgorithm<java.nio.channels.SocketChannel>preParse in class StreamAlgorithmBasebyteBuffer - the ByteBuffer used by this algorithm
ByteBuffer used by this algorithmpublic boolean parse(java.nio.ByteBuffer byteBuffer)
ByteBuffer
parse in interface StreamAlgorithm<java.nio.channels.SocketChannel>parse in class StreamAlgorithmBasepublic Interceptor getHandler()
Interceptor used by this algorithm.
public void recycle()
recycle in interface StreamAlgorithm<java.nio.channels.SocketChannel>recycle in class StreamAlgorithmBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||