Save This Page
Home » apache-tomcat-6.0.16-src » org.apache » coyote » http11 » [javadoc | source]
org.apache.coyote.http11
public interface: OutputFilter [javadoc | source]

All Implemented Interfaces:
    OutputBuffer

All Known Implementing Classes:
    GzipOutputFilter, IdentityOutputFilter, VoidOutputFilter, ChunkedOutputFilter

Output filter.
Method from org.apache.coyote.http11.OutputFilter Summary:
doWrite,   end,   getEncodingName,   recycle,   setBuffer,   setResponse
Method from org.apache.coyote.http11.OutputFilter Detail:
 public int doWrite(ByteChunk chunk,
    Response unused) 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()
    Get the name of the encoding handled by this filter.
 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.