| Modifier and Type | Method and Description |
|---|---|
| public long | Returns: 0 is the expected return value. A positive value indicates that too many bytes were read. This method is allowed to use buffer.doRead to consume extra bytes. The result of this method can't be negative (if an error happens, an IOException should be thrown instead).End the current request. |
| public ByteChunk | Returns: The encoding name as a byte chunk to facilitate comparison with the value read from the HTTP headers which will also be a ByteChunkGet the name of the encoding handled by this filter. |
| public boolean | Returns: true if the request body has been fully read, otherwise falseHas the request body been read fully? |
| public void | |
| public void | |
| public void | setRequest(Request
The request to be associated with this filter request)Some filters need additional parameters from the request. |
| end | back to summary |
|---|---|
| public long end() throws IOException End the current request.
| |
| getEncodingName | back to summary |
|---|---|
| public ByteChunk getEncodingName() Get the name of the encoding handled by this filter.
| |
| isFinished | back to summary |
|---|---|
| public boolean isFinished() Has the request body been read fully?
| |
| recycle | back to summary |
|---|---|
| public void recycle() Make the filter ready to process the next request. | |
| setBuffer | back to summary |
|---|---|
| public void setBuffer(InputBuffer buffer) Set the next buffer in the filter pipeline.
| |
| setRequest | back to summary |
|---|---|
| public void setRequest(Request request) Some filters need additional parameters from the request.
| |