org.apache.coyote.http11
public interface InputFilter extends InputBuffer
Method Summary | |
---|---|
int | available()
Amount of bytes still available in a buffer. |
int | doRead(ByteChunk chunk, Request unused)
Read bytes.
|
long | end()
End the current request.
|
ByteChunk | getEncodingName()
Get the name of the encoding handled by this filter. |
void | recycle()
Make the filter ready to process the next request. |
void | setBuffer(InputBuffer buffer)
Set the next buffer in the filter pipeline. |
void | setRequest(Request request)
Some filters need additional parameters from the request. |
Returns: Number of bytes read.
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).