Methods Summary |
---|
public int | available()Amount of bytes still available in a buffer.
return input.getLength();
|
public int | doRead(org.apache.tomcat.util.buf.ByteChunk chunk, org.apache.coyote.Request request)Read bytes.
int writeLength = 0;
if (chunk.getLimit() > 0 && chunk.getLimit() < input.getLength()) {
writeLength = chunk.getLimit();
} else {
writeLength = input.getLength();
}
if(input.getOffset()>= input.getEnd())
return -1;
input.substract(chunk.getBuffer(), 0, writeLength);
chunk.setOffset(0);
chunk.setEnd(writeLength);
return writeLength;
|
public long | end()End the current request (has no effect).
return 0;
|
public org.apache.tomcat.util.buf.ByteChunk | getEncodingName()Return the name of the associated encoding; here, the value is null.
return null;
|
public void | recycle()Make the filter ready to process the next request.
input = null;
|
public void | setBuffer(org.apache.coyote.InputBuffer buffer)Set the next buffer in the filter pipeline (has no effect).
|
public void | setRequest(org.apache.coyote.Request request)Set the content length on the request.
request.setContentLength(input.getLength());
|