public class VoidOutputFilter extends Object implements OutputFilter
| Constructor and Description |
|---|
VoidOutputFilter() |
| Modifier and Type | Method and Description |
|---|---|
int |
doWrite(ByteBuffer chunk)
Write the given data to the response.
|
void |
end()
Finish writing the current response.
|
void |
flush()
Flushes any unwritten data to the client.
|
long |
getBytesWritten()
Bytes written to the underlying socket.
|
void |
recycle()
Make the filter ready to process the next request.
|
void |
setBuffer(HttpOutputBuffer buffer)
Set the next buffer in the filter pipeline.
|
void |
setResponse(Response response)
Some filters need additional parameters from the response.
|
public int doWrite(ByteBuffer chunk) throws IOException
OutputBufferdoWrite in interface OutputBufferchunk - data to writeIOException - an underlying I/O error occurredpublic long getBytesWritten()
OutputBuffergetBytesWritten in interface OutputBufferpublic void setResponse(Response response)
OutputFiltersetResponse in interface OutputFilterresponse - The response to associate with this OutputFilterpublic void setBuffer(HttpOutputBuffer buffer)
OutputFiltersetBuffer in interface OutputFilterbuffer - The next buffer instancepublic void flush()
throws IOException
HttpOutputBufferflush in interface HttpOutputBufferIOException - If an I/O error occurs while flushingpublic void recycle()
OutputFilterrecycle in interface OutputFilterpublic void end()
throws IOException
HttpOutputBufferOutputBuffer.doWrite(java.nio.ByteBuffer) during the execution of
this method.end in interface HttpOutputBufferIOException - If an I/O error occurs while writing to the clientCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.