| java.lang.Object org.apache.coyote.http11.filters.IdentityInputFilter
IdentityInputFilter | public class IdentityInputFilter implements InputFilter(Code) | | Identity input filter.
author: Remy Maucherat |
Method Summary | |
public int | available() Amount of bytes still available in a buffer. | public int | doRead(ByteChunk chunk, Request req) Read bytes.
If the filter does request length control, this value issignificant; 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. | public long | end() 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. |
ENCODING_NAME | final protected static String ENCODING_NAME(Code) | | |
contentLength | protected long contentLength(Code) | | Content length.
|
endChunk | protected ByteChunk endChunk(Code) | | Chunk used to read leftover bytes.
|
remaining | protected long remaining(Code) | | Remaining bytes.
|
available | public int available()(Code) | | Amount of bytes still available in a buffer.
|
doRead | public int doRead(ByteChunk chunk, Request req) throws IOException(Code) | | Read bytes.
If the filter does request length control, this value issignificant; 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 lengthcontrol, the returned value should be -1. |
getContentLength | public long getContentLength()(Code) | | Get content length.
|
getEncodingName | public ByteChunk getEncodingName()(Code) | | Return the name of the associated encoding; Here, the value is
"identity".
|
getRemaining | public long getRemaining()(Code) | | Get remaining bytes.
|
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) | | Read the content length from the request.
|
|
|