- All Superinterfaces:
- All Known Implementing Classes:
public interface InputFilter extends InputBuffer
Input filter interface.
- Remy Maucherat
Method SummaryModifier and TypeMethodDescription
end()End the current request.Get the name of the encoding handled by this filter.
booleanHas the request body been read fully?
recycle()Make the filter ready to process the next request.
voidSet the next buffer in the filter pipeline.
voidSome filters need additional parameters from the request.
(Request request)Some filters need additional parameters from the request.
request- The request to be associated with this filter
recyclevoid recycle()Make the filter ready to process the next request.
getEncodingNameByteChunk getEncodingName()Get the name of the encoding handled by this filter.
- The encoding name as a byte chunk to facilitate comparison with the value read from the HTTP headers which will also be a ByteChunk
(InputBuffer buffer)Set the next buffer in the filter pipeline.
buffer- The next buffer
endlong end() throws IOExceptionEnd the current request.
- 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).
IOException- If an error happens
isFinishedboolean isFinished()Has the request body been read fully?
trueif the request body has been fully read, otherwise