| Modifier and Type | Class and Description |
|---|---|
| protected class |
| Modifier and Type | Field and Description |
|---|---|
| protected HttpOutputBuffer | buffer
Next buffer in the pipeline. |
| protected GZIPOutputStream | compressionStream
Compression output stream. |
| protected final OutputStream | fakeOutputStream
Fake internal output stream. |
| protected static final Log | |
| private static final StringManager |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | doWrite(ByteBuffer
data to write chunk)Implements org. Write the given data to the response. |
| public void | |
| public void | flush()
Implements org. Added to allow flushing to happen for the gzip'ed outputstream |
| public long | getBytesWritten()
Implements org. Bytes written to the underlying socket. |
| public void | recycle()
Implements org. Make the filter ready to process the next request. |
| public void | setBuffer(HttpOutputBuffer
The next buffer instance buffer)Implements org. Set the next buffer in the filter pipeline. |
| public void | setResponse(Response
The response to associate with this OutputFilter response)Implements org. Some filters need additional parameters from the response. |
| buffer | back to summary |
|---|---|
| protected HttpOutputBuffer buffer Next buffer in the pipeline. | |
| compressionStream | back to summary |
|---|---|
| protected GZIPOutputStream compressionStream Compression output stream. | |
| fakeOutputStream | back to summary |
|---|---|
| protected final OutputStream fakeOutputStream Fake internal output stream. | |
| log | back to summary |
|---|---|
| protected static final Log log | |
| sm | back to summary |
|---|---|
| private static final StringManager sm | |
| GzipOutputFilter | back to summary |
|---|---|
| public GzipOutputFilter() | |
| doWrite | back to summary |
|---|---|
| public int doWrite(ByteBuffer chunk) throws IOException Implements org. Doc from org. Write the given data to the response. The caller owns the chunks.
| |
| end | back to summary |
|---|---|
| public void end() throws IOException Implements org. Doc from org. Finish writing the current response. It is acceptable to write extra bytes using
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Implements org. Added to allow flushing to happen for the gzip'ed outputstream
| |
| getBytesWritten | back to summary |
|---|---|
| public long getBytesWritten() Implements org. Doc from org. Bytes written to the underlying socket. This includes the effects of chunking, compression, etc.
| |
| recycle | back to summary |
|---|---|
| public void recycle() Implements org. Make the filter ready to process the next request.
| |
| setBuffer | back to summary |
|---|---|
| public void setBuffer(HttpOutputBuffer buffer) Implements org. Doc from org. Set the next buffer in the filter pipeline.
| |
| setResponse | back to summary |
|---|---|
| public void setResponse(Response response) Implements org. Doc from org. Some filters need additional parameters from the response. All the necessary reading can occur in that method, as this method is called after the response header processing is complete. | |
| Modifier and Type | Field and Description |
|---|---|
| protected final ByteBuffer |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. Closes this output stream and releases any system resources associated with this stream. |
| public void | flush()
Overrides java. Implements java. Flushes this output stream and forces any buffered output bytes to be written out. |
| public void | write(int
the b)byte.Implements abstract java. Writes the specified byte to this output stream. |
| public void | write(byte[]
the data. b, int the start offset in the data. off, int the number of bytes to write. len)Overrides java. Writes |
| outputChunk | back to summary |
|---|---|
| protected final ByteBuffer outputChunk | |
| FakeOutputStream | back to summary |
|---|---|
| protected FakeOutputStream() | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources
associated with this stream. The general contract of
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides java. Implements java. Doc from java. Flushes this output stream and forces any buffered output bytes
to be written out. The general contract of If the intended destination of this stream is an abstraction provided by the underlying operating system, for example a file, then flushing the stream guarantees only that bytes previously written to the stream are passed to the operating system for writing; it does not guarantee that they are actually written to a physical device such as a disk drive.
| |
| write | back to summary |
|---|---|
| public void write(int b) throws IOException Implements abstract java. Doc from java. Writes the specified byte to this output stream. The general
contract for
| |
| write | back to summary |
|---|---|
| public void write(byte[] b, int off, int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |