InputBuffer
BufferedInputFilter
, ChunkedInputFilter
, IdentityInputFilter
, SavedRequestInputFilter
, VoidInputFilter
public interface InputFilter extends InputBuffer
Modifier and Type | Method | Description |
---|---|---|
int |
available() |
Amount of bytes still available in a buffer.
|
long |
end() |
End the current request.
|
ByteChunk |
getEncodingName() |
Get the name of the encoding handled by this filter.
|
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) |
Some filters need additional parameters from the request.
|
doRead
void setRequest(Request request)
request
- The request to be associated with this filtervoid recycle()
ByteChunk getEncodingName()
void setBuffer(InputBuffer buffer)
buffer
- The next bufferlong end() throws java.io.IOException
java.io.IOException
- If an error happensint available()
boolean isFinished()
true
if the request body has been fully read, otherwise
false
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.