public class SavedRequestInputFilter extends java.lang.Object implements InputFilter
| Modifier and Type | Field and Description |
|---|---|
protected ByteChunk |
input
The original request body.
|
| Constructor and Description |
|---|
SavedRequestInputFilter(ByteChunk input)
Create a new SavedRequestInputFilter.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available()
Amount of bytes still available in a buffer.
|
int |
doRead(ByteChunk chunk,
Request request)
Read bytes.
|
long |
end()
End the current request (has no effect).
|
ByteChunk |
getEncodingName()
Return the name of the associated encoding; here, the value is null.
|
void |
recycle()
Make the filter ready to process the next request.
|
void |
setBuffer(InputBuffer buffer)
Set the next buffer in the filter pipeline (has no effect).
|
void |
setRequest(Request request)
Set the content length on the request.
|
protected ByteChunk input
public SavedRequestInputFilter(ByteChunk input)
input - The saved request body to be replayed.public int doRead(ByteChunk chunk, Request request) throws java.io.IOException
doRead in interface InputFilterdoRead in interface InputBufferjava.io.IOExceptionpublic void setRequest(Request request)
setRequest in interface InputFilterpublic void recycle()
recycle in interface InputFilterpublic ByteChunk getEncodingName()
getEncodingName in interface InputFilterpublic void setBuffer(InputBuffer buffer)
setBuffer in interface InputFilterpublic int available()
available in interface InputFilterpublic long end()
throws java.io.IOException
end in interface InputFilterjava.io.IOExceptionCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.