org.apache.coyote.http11.filters
public class VoidInputFilter extends Object implements InputFilter
Field Summary | |
---|---|
protected static ByteChunk | ENCODING |
protected static String | ENCODING_NAME |
Method Summary | |
---|---|
int | available()
Amount of bytes still available in a buffer. |
int | doRead(ByteChunk chunk, Request req)
Write some bytes.
|
long | end()
End the current request. |
ByteChunk | getEncodingName()
Return the name of the associated encoding; Here, the value is
"void". |
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)
Set the associated reauest. |
Returns: number of bytes written by the filter
Returns: Should return 0 unless the filter does some content length delimitation, in which case the number is the amount of extra bytes or missing bytes, which would indicate an error. Note: It is recommended that extra bytes be swallowed by the filter.