| Modifier and Type | Field and Description |
|---|---|
| protected HttpOutputBuffer | buffer
Next buffer in the pipeline. |
| protected long | contentLength
Content length. |
| protected long | remaining
Remaining bytes. |
| 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. Flushes any unwritten data to the client. |
| 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. | |
| contentLength | back to summary |
|---|---|
| protected long contentLength Content length. | |
| remaining | back to summary |
|---|---|
| protected long remaining Remaining bytes. | |
| IdentityOutputFilter | back to summary |
|---|---|
| public IdentityOutputFilter() | |
| 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. Doc from org. Flushes any unwritten data to the client.
| |
| 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. Doc from 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. | |