public class VoidInputFilter extends Object implements InputFilter
| Modifier and Type | Field and Description |
|---|---|
protected static ByteChunk |
ENCODING |
protected static String |
ENCODING_NAME |
| Constructor and Description |
|---|
VoidInputFilter() |
| Modifier and Type | Method and Description |
|---|---|
int |
available()
Amount of bytes still available in a buffer.
|
int |
doRead(ByteChunk chunk,
Request req)
Write some bytes.
|
long |
end()
End the current request.
|
ByteChunk |
getEncodingName()
Return the name of the associated encoding; Here, the value is
"void".
|
boolean |
isFinished()
Has the request body been read fully?
|
void |
recycle()
Make the filter ready to process the next request.
|
void |
setBuffer(InputBuffer buffer)
Set the next buffer in the filter pipeline.
|
void |
setRequest(Request request)
Set the associated request.
|
protected static final String ENCODING_NAME
protected static final ByteChunk ENCODING
public int doRead(ByteChunk chunk, Request req) throws IOException
doRead in interface InputFilterdoRead in interface InputBufferIOExceptionpublic void setRequest(Request request)
setRequest in interface InputFilterpublic void setBuffer(InputBuffer buffer)
setBuffer in interface InputFilterpublic void recycle()
recycle in interface InputFilterpublic ByteChunk getEncodingName()
getEncodingName in interface InputFilterpublic long end()
throws IOException
end in interface InputFilterIOExceptionpublic int available()
InputFilteravailable in interface InputFilterpublic boolean isFinished()
InputFilterisFinished in interface InputFilterCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.