| Modifier and Type | Field and Description |
|---|---|
| protected static final ByteChunk | |
| protected static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | available()
Implements org. Obtain an estimate of the number of bytes that can be read without blocking. |
| public int | doRead(ApplicationBufferHandler
ApplicationBufferHandler that provides the buffer to read data into. handler)Implements org. Read from the input stream into the ByteBuffer provided by the ApplicationBufferHandler. |
| public long | Returns: Should return 0 unless the filter does some content length delimitation, in which case the number is the amount of extra bytes or missing bytes, which would indicate an error.Note It is recommended that extra bytes be swallowed by the filter. Implements org. End the current request. |
| public ByteChunk | getEncodingName()
Implements org. Return the name of the associated encoding; Here, the value is "void". |
| public boolean | isFinished()
Implements org. Has the request body been read fully? |
| public void | recycle()
Implements org. Make the filter ready to process the next request. |
| public void | setBuffer(InputBuffer
The next buffer buffer)Implements org. Set the next buffer in the filter pipeline. |
| public void | setRequest(Request
The request to be associated with this filter request)Implements org. Set the associated request. |
| ENCODING | back to summary |
|---|---|
| protected static final ByteChunk ENCODING | |
| ENCODING_NAME | back to summary |
|---|---|
| protected static final String ENCODING_NAME | |
| VoidInputFilter | back to summary |
|---|---|
| public VoidInputFilter() | |
| available | back to summary |
|---|---|
| public int available() Implements org. Doc from org. Obtain an estimate of the number of bytes that can be read without blocking. Typically, this will be the number of available bytes known to be buffered.
| |
| doRead | back to summary |
|---|---|
| public int doRead(ApplicationBufferHandler handler) throws IOException Implements org. Doc from org. Read from the input stream into the ByteBuffer provided by the ApplicationBufferHandler. Important Note the current model assumes that the protocol will 'own' the ByteBuffer and return a pointer to it.
| |
| end | back to summary |
|---|---|
| public long end() throws IOException Implements org. End the current request. It is acceptable to write extra bytes using buffer.doWrite during the execution of this method.
| |
| getEncodingName | back to summary |
|---|---|
| public ByteChunk getEncodingName() Implements org. Return the name of the associated encoding; Here, the value is "void".
| |
| isFinished | back to summary |
|---|---|
| public boolean isFinished() Implements org. Doc from org. Has the request body been read fully?
| |
| recycle | back to summary |
|---|---|
| public void recycle() Implements org. Make the filter ready to process the next request.
| |
| setBuffer | back to summary |
|---|---|
| public void setBuffer(InputBuffer buffer) Implements org. Set the next buffer in the filter pipeline.
| |
| setRequest | back to summary |
|---|---|
| public void setRequest(Request request) Implements org. Set the associated request.
| |