org.apache.coyote.http11.filters
public class GzipOutputFilter extends Object implements OutputFilter
| Nested Class Summary | |
|---|---|
| protected class | GzipOutputFilter.FakeOutputStream |
| Field Summary | |
|---|---|
| protected OutputBuffer | buffer
Next buffer in the pipeline. |
| protected GZIPOutputStream | compressionStream
Compression output stream. |
| protected static ByteChunk | ENCODING |
| protected static String | ENCODING_NAME |
| protected OutputStream | fakeOutputStream
Fake internal output stream. |
| 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