org.apache.coyote.http11.filters

Class BufferedInputFilter

Implemented Interfaces:
InputBuffer, InputFilter

public class BufferedInputFilter
extends java.lang.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

int
doRead(ByteChunk chunk, Request request)
Fills the given ByteChunk with the buffered request body.
long
end()
ByteChunk
getEncodingName()
void
recycle()
void
setBuffer(InputBuffer buffer)
void
setLimit(int limit)
Set the buffering limit.
void
setRequest(Request request)
Reads the request body and buffers it.

Method Details

doRead

public int doRead(ByteChunk chunk,
                  Request request)
            throws IOException
Fills the given ByteChunk with the buffered request body.
Specified by:
doRead in interface InputFilter
doRead in interface InputBuffer


end

public long end()
            throws IOException
Specified by:
end in interface InputFilter


getEncodingName

public ByteChunk getEncodingName()
Specified by:
getEncodingName in interface InputFilter


recycle

public void recycle()
Specified by:
recycle in interface InputFilter


setBuffer

public void setBuffer(InputBuffer buffer)
Specified by:
setBuffer in interface InputFilter


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.
Specified by:
setRequest in interface InputFilter


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.