public class VoidOutputFilter extends Object implements OutputFilter
Constructor and Description |
---|
VoidOutputFilter() |
Modifier and Type | Method and Description |
---|---|
int |
doWrite(ByteChunk chunk,
Response res)
Write some bytes.
|
long |
end()
End the current request.
|
long |
getBytesWritten()
Bytes written to the underlying socket.
|
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.
|
public int doWrite(ByteChunk chunk, Response res) throws IOException
doWrite
in interface OutputFilter
doWrite
in interface OutputBuffer
chunk
- data to writeres
- The response to which the data should be written.
(Should be the response already associated with the
OutputBuffer).IOException
- an underlying I/O error occurredpublic long getBytesWritten()
OutputBuffer
getBytesWritten
in interface OutputBuffer
public void setResponse(Response response)
setResponse
in interface OutputFilter
public void setBuffer(OutputBuffer buffer)
setBuffer
in interface OutputFilter
public void recycle()
recycle
in interface OutputFilter
public long end() throws IOException
end
in interface OutputFilter
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.