| java.lang.Object org.apache.coyote.http11.filters.VoidInputFilter
VoidInputFilter | public class VoidInputFilter implements InputFilter(Code) | | Void input filter, which returns -1 when attempting a read. Used with a GET,
HEAD, or a similar request.
author: Remy Maucherat |
Method Summary | |
public int | available() Amount of bytes still available in a buffer. | public int | doRead(ByteChunk chunk, Request req) Write some bytes. | public long | end() End the current request. | public ByteChunk | getEncodingName() Return the name of the associated encoding; Here, the value is
"void". | 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) Set the associated reauest. |
ENCODING_NAME | final protected static String ENCODING_NAME(Code) | | |
available | public int available()(Code) | | Amount of bytes still available in a buffer.
|
end | public long end() throws IOException(Code) | | End the current request. It is acceptable to write extra bytes using
buffer.doWrite during the execution of this method.
Should return 0 unless the filter does some content length delimitation, in which case the number is the amount of extra bytes ormissing bytes, which would indicate an error. Note: It is recommended that extra bytes be swallowed by the filter. |
getEncodingName | public ByteChunk getEncodingName()(Code) | | Return the name of the associated encoding; Here, the value is
"void".
|
recycle | public void recycle()(Code) | | Make the filter ready to process the next request.
|
setBuffer | public void setBuffer(InputBuffer buffer)(Code) | | Set the next buffer in the filter pipeline.
|
setRequest | public void setRequest(Request request)(Code) | | Set the associated reauest.
|
|
|