org.apache.coyote.http11.filters

Class BufferedInputFilter

public class BufferedInputFilter extends Object implements InputFilter

Input filter responsible for reading and buffering the request body, so that it does not interfere with client SSL handshake messages.
Method Summary
intavailable()
intdoRead(ByteChunk chunk, Request request)
Fills the given ByteChunk with the buffered request body.
longend()
ByteChunkgetEncodingName()
voidrecycle()
voidsetBuffer(InputBuffer buffer)
voidsetLimit(int limit)
Set the buffering limit.
voidsetRequest(Request request)
Reads the request body and buffers it.

Method Detail

available

public int available()

doRead

public int doRead(ByteChunk chunk, Request request)
Fills the given ByteChunk with the buffered request body.

end

public long end()

getEncodingName

public ByteChunk getEncodingName()

recycle

public void recycle()

setBuffer

public void setBuffer(InputBuffer buffer)

setLimit

public void setLimit(int limit)
Set the buffering limit. This should be reset every time the buffer is used.

setRequest

public void setRequest(Request request)
Reads the request body and buffers it.
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.