HttpOutputBuffer
, OutputFilter
, OutputBuffer
public class VoidOutputFilter extends java.lang.Object implements OutputFilter
Constructor | Description |
---|---|
VoidOutputFilter() |
Modifier and Type | Method | Description |
---|---|---|
int |
doWrite(java.nio.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(java.nio.ByteBuffer chunk) throws java.io.IOException
OutputBuffer
doWrite
in interface OutputBuffer
chunk
- data to writejava.io.IOException
- an underlying I/O error occurredpublic long getBytesWritten()
OutputBuffer
getBytesWritten
in interface OutputBuffer
public void setResponse(Response response)
OutputFilter
setResponse
in interface OutputFilter
response
- The response to associate with this OutputFilterpublic void setBuffer(HttpOutputBuffer buffer)
OutputFilter
setBuffer
in interface OutputFilter
buffer
- The next buffer instancepublic void flush() throws java.io.IOException
HttpOutputBuffer
flush
in interface HttpOutputBuffer
java.io.IOException
- If an I/O error occurs while flushingpublic void recycle()
OutputFilter
recycle
in interface OutputFilter
public void end() throws java.io.IOException
HttpOutputBuffer
OutputBuffer.doWrite(java.nio.ByteBuffer)
during the execution of
this method.end
in interface HttpOutputBuffer
java.io.IOException
- If an I/O error occurs while writing to the clientCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.