Save This Page
Home » apache-tomcat-6.0.16-src » org.apache » coyote » http11 » filters » [javadoc | source]
org.apache.coyote.http11.filters
public class: ChunkedOutputFilter [javadoc | source]
java.lang.Object
   org.apache.coyote.http11.filters.ChunkedOutputFilter

All Implemented Interfaces:
    OutputFilter

Chunked output filter.
Field Summary
protected static final  String ENCODING_NAME     
protected static final  ByteChunk ENCODING     
protected static final  ByteChunk END_CHUNK    End chunk. 
protected  OutputBuffer buffer    Next buffer in the pipeline. 
protected  byte[] chunkLength    Buffer used for chunk length conversion. 
protected  ByteChunk chunkHeader    Chunk header. 
Constructor:
 public ChunkedOutputFilter() 
Method from org.apache.coyote.http11.filters.ChunkedOutputFilter Summary:
doWrite,   end,   getEncodingName,   recycle,   setBuffer,   setResponse
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.coyote.http11.filters.ChunkedOutputFilter Detail:
 public int doWrite(ByteChunk chunk,
    Response res) throws IOException 
    Write some bytes.
 public long end() throws IOException 
    End the current request. It is acceptable to write extra bytes using buffer.doWrite during the execution of this method.
 public ByteChunk getEncodingName() 
    Return the name of the associated encoding; Here, the value is "identity".
 public  void recycle() 
    Make the filter ready to process the next request.
 public  void setBuffer(OutputBuffer buffer) 
    Set the next buffer in the filter pipeline.
 public  void setResponse(Response response) 
    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.