|
Apache Tomcat 7.0.25 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.coyote.http11.filters.ChunkedOutputFilter
public class ChunkedOutputFilter
Chunked output filter.
| 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 |
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. |
long |
getBytesWritten()
Bytes written to the underlying socket. |
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 ByteChunk END_CHUNK
protected OutputBuffer buffer
protected byte[] chunkLength
protected ByteChunk chunkHeader
| Constructor Detail |
|---|
public ChunkedOutputFilter()
| Method Detail |
|---|
public int doWrite(ByteChunk chunk,
Response res)
throws IOException
doWrite in interface OutputFilterdoWrite in interface OutputBufferchunk - data to writeres - used to allow buffers that can be shared by multiple
responses.
IOExceptionpublic long getBytesWritten()
OutputBuffer
getBytesWritten in interface OutputBufferpublic void setResponse(Response response)
setResponse in interface OutputFilterpublic void setBuffer(OutputBuffer buffer)
setBuffer in interface OutputFilter
public long end()
throws IOException
end in interface OutputFilterIOExceptionpublic void recycle()
recycle in interface OutputFilter
|
Apache Tomcat 7.0.25 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||