|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.coyote.http11.filters.GzipOutputFilter
Gzip output filter.
Nested Class Summary | |
protected class |
GzipOutputFilter.FakeOutputStream
|
Field Summary | |
protected OutputBuffer |
buffer
Next buffer in the pipeline. |
protected java.util.zip.GZIPOutputStream |
compressionStream
Compression output stream. |
protected static ByteChunk |
ENCODING
|
protected static java.lang.String |
ENCODING_NAME
|
protected java.io.OutputStream |
fakeOutputStream
Fake internal output stream. |
Constructor Summary | |
GzipOutputFilter()
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final java.lang.String ENCODING_NAME
protected static final ByteChunk ENCODING
protected OutputBuffer buffer
protected java.util.zip.GZIPOutputStream compressionStream
protected java.io.OutputStream fakeOutputStream
Constructor Detail |
public GzipOutputFilter()
Method Detail |
public int doWrite(ByteChunk chunk, Response res) throws java.io.IOException
doWrite
in interface OutputFilter
java.io.IOException
public void setResponse(Response response)
setResponse
in interface OutputFilter
public void setBuffer(OutputBuffer buffer)
setBuffer
in interface OutputFilter
public long end() throws java.io.IOException
end
in interface OutputFilter
java.io.IOException
public void recycle()
recycle
in interface OutputFilter
public ByteChunk getEncodingName()
getEncodingName
in interface OutputFilter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |