org.apache.coyote.http11.filters
public class VoidOutputFilter extends Object implements OutputFilter
Field Summary | |
---|---|
protected OutputBuffer | buffer
Next buffer in the pipeline. |
protected static ByteChunk | ENCODING |
protected static String | ENCODING_NAME |
Method Summary | |
---|---|
int | doWrite(ByteChunk chunk, Response res)
Write some bytes.
|
long | end()
End the current request. |
ByteChunk | getEncodingName()
Return the name of the associated encoding; Here, the value is
"identity". |
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. |
Returns: number of bytes written by the filter
Returns: Should return 0 unless the filter does some content length delimitation, in which case the number is the amount of extra bytes or missing bytes, which would indicate an error. Note: It is recommended that extra bytes be swallowed by the filter.