org.apache.coyote.http11.filters
public class IdentityOutputFilter extends Object implements OutputFilter
Field Summary | |
---|---|
protected OutputBuffer | buffer
Next buffer in the pipeline. |
protected long | contentLength
Content length. |
protected static ByteChunk | ENCODING |
protected static String | ENCODING_NAME |
protected long | remaining
Remaining bytes. |
Method Summary | |
---|---|
int | doWrite(ByteChunk chunk, Response res)
Write some bytes.
|
long | end()
End the current request. |
long | getContentLength()
Get content length. |
ByteChunk | getEncodingName()
Return the name of the associated encoding; Here, the value is
"identity". |
long | getRemaining()
Get remaining bytes. |
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