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

All Implemented Interfaces:
    InputFilter

Identity input filter.
Field Summary
protected static final  String ENCODING_NAME     
protected static final  ByteChunk ENCODING     
protected  long contentLength    Content length. 
protected  long remaining    Remaining bytes. 
protected  InputBuffer buffer    Next buffer in the pipeline. 
protected  ByteChunk endChunk    Chunk used to read leftover bytes. 
Method from org.apache.coyote.http11.filters.IdentityInputFilter Summary:
available,   doRead,   end,   getContentLength,   getEncodingName,   getRemaining,   recycle,   setBuffer,   setRequest
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.coyote.http11.filters.IdentityInputFilter Detail:
 public int available() 
    Amount of bytes still available in a buffer.
 public int doRead(ByteChunk chunk,
    Request req) throws IOException 
    Read bytes.
 public long end() throws IOException 
    End the current request.
 public long getContentLength() 
    Get content length.
 public ByteChunk getEncodingName() 
    Return the name of the associated encoding; Here, the value is "identity".
 public long getRemaining() 
    Get remaining bytes.
 public  void recycle() 
    Make the filter ready to process the next request.
 public  void setBuffer(InputBuffer buffer) 
    Set the next buffer in the filter pipeline.
 public  void setRequest(Request request) 
    Read the content length from the request.