org.apache.coyote.http11.filters

Class SavedRequestInputFilter

public class SavedRequestInputFilter extends Object implements InputFilter

Input filter responsible for replaying the request body when restoring the saved request after FORM authentication.
Field Summary
protected ByteChunkinput
The original request body.
Constructor Summary
SavedRequestInputFilter(ByteChunk input)
Create a new SavedRequestInputFilter.
Method Summary
intavailable()
Amount of bytes still available in a buffer.
intdoRead(ByteChunk chunk, Request request)
Read bytes.
longend()
End the current request (has no effect).
ByteChunkgetEncodingName()
Return the name of the associated encoding; here, the value is null.
voidrecycle()
Make the filter ready to process the next request.
voidsetBuffer(InputBuffer buffer)
Set the next buffer in the filter pipeline (has no effect).
voidsetRequest(Request request)
Set the content length on the request.

Field Detail

input

protected ByteChunk input
The original request body.

Constructor Detail

SavedRequestInputFilter

public SavedRequestInputFilter(ByteChunk input)
Create a new SavedRequestInputFilter.

Parameters: input The saved request body to be replayed.

Method Detail

available

public int available()
Amount of bytes still available in a buffer.

doRead

public int doRead(ByteChunk chunk, Request request)
Read bytes.

end

public long end()
End the current request (has no effect).

getEncodingName

public ByteChunk getEncodingName()
Return the name of the associated encoding; here, the value is null.

recycle

public void recycle()
Make the filter ready to process the next request.

setBuffer

public void setBuffer(InputBuffer buffer)
Set the next buffer in the filter pipeline (has no effect).

setRequest

public void setRequest(Request request)
Set the content length on the request.
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.