org.apache.coyote.http11
public interface OutputFilter extends OutputBuffer
Method Summary | |
---|---|
int | doWrite(ByteChunk chunk, Response unused)
Write some 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(OutputBuffer buffer)
Set the next buffer in the filter pipeline. |
void | setResponse(Response response)
Some filters need additional parameters from the response. |
Returns: number of bytes written by the filter
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.