org.apache.coyote.http11.filters
public class IdentityInputFilter extends Object implements InputFilter
Field Summary | |
---|---|
protected InputBuffer | buffer
Next buffer in the pipeline. |
protected long | contentLength
Content length. |
protected ByteChunk | endChunk
Chunk used to read leftover bytes. |
protected static ByteChunk | ENCODING |
protected static String | ENCODING_NAME |
protected long | remaining
Remaining bytes. |
Method Summary | |
---|---|
int | available()
Amount of bytes still available in a buffer. |
int | doRead(ByteChunk chunk, Request req)
Read bytes.
|
long | end()
End the current request. |
long | getContentLength()
Get content length. |
ByteChunk | getEncodingName()
Return the name of the associated encoding; Here, the value is
"identity". |
long | getRemaining()
Get remaining bytes. |
void | recycle()
Make the filter ready to process the next request. |
void | setBuffer(InputBuffer buffer)
Set the next buffer in the filter pipeline. |
void | setRequest(Request request)
Read the content length from the request. |
Returns: If the filter does request length control, this value is significant; it should be the number of bytes consumed from the buffer, up until the end of the current request body, or the buffer length, whichever is greater. If the filter does not do request body length control, the returned value should be -1.