public interface OutputFilter extends OutputBuffer
| Modifier and Type | Method and Description | 
|---|---|
| int | doWrite(ByteChunk chunk,
       Response unused)Write some bytes. | 
| long | end()End the current request. | 
| 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. | 
getBytesWrittenint doWrite(ByteChunk chunk, Response unused) throws IOException
doWrite in interface OutputBufferchunk - data to writeunused - The response to which the data should be written.
                  (Should be the response already associated with the
                  OutputBuffer).IOException - an underlying I/O error occurredvoid setResponse(Response response)
void recycle()
void setBuffer(OutputBuffer buffer)
long end()
         throws IOException
IOExceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.