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.
|
int |
doWrite(ByteChunk chunk)
Deprecated.
Unused. Will be removed in Tomcat 9. Use
doWrite(ByteBuffer) |
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.
|
@Deprecated public int doWrite(ByteChunk chunk) throws IOException
doWrite(ByteBuffer)
OutputBuffer
doWrite
in interface OutputBuffer
chunk
- data to writeIOException
- an underlying I/O error occurredpublic int doWrite(ByteBuffer chunk) throws IOException
OutputBuffer
doWrite
in interface OutputBuffer
chunk
- data to writeIOException
- an underlying I/O error occurredpublic long getBytesWritten()
OutputBuffer
getBytesWritten
in interface OutputBuffer
public void setResponse(Response response)
setResponse
in interface OutputFilter
response
- The response to associate with this OutputFilterpublic void setBuffer(OutputBuffer buffer)
setBuffer
in interface OutputFilter
buffer
- The next buffer instancepublic void recycle()
recycle
in interface OutputFilter
public long end() throws IOException
end
in interface OutputFilter
IOException
- If an I/O error occurs while writing to the clientCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.