org.apache.coyote.http11.filters
public class ChunkedOutputFilter extends Object implements OutputFilter
Field Summary | |
---|---|
protected OutputBuffer | buffer
Next buffer in the pipeline. |
protected ByteChunk | chunkHeader
Chunk header. |
protected byte[] | chunkLength
Buffer used for chunk length conversion. |
protected static ByteChunk | ENCODING |
protected static String | ENCODING_NAME |
protected static ByteChunk | END_CHUNK
End chunk. |
Constructor Summary | |
---|---|
ChunkedOutputFilter()
Default constructor. |
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