public class VoidInputFilter extends java.lang.Object implements InputFilter
Modifier and Type | Field and Description |
---|---|
protected static ByteChunk |
ENCODING |
protected static java.lang.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(ApplicationBufferHandler handler)
Read from the input stream into the ByteBuffer provided by the
ApplicationBufferHandler.
|
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 java.lang.String ENCODING_NAME
protected static final ByteChunk ENCODING
public int doRead(ApplicationBufferHandler handler) throws java.io.IOException
InputBuffer
doRead
in interface InputBuffer
handler
- ApplicationBufferHandler that provides the buffer to read
data into.java.io.IOException
- If an I/O error occurs reading from the input streampublic void setRequest(Request request)
setRequest
in interface InputFilter
request
- The request to be associated with this filterpublic void setBuffer(InputBuffer buffer)
setBuffer
in interface InputFilter
buffer
- The next bufferpublic void recycle()
recycle
in interface InputFilter
public ByteChunk getEncodingName()
getEncodingName
in interface InputFilter
public long end() throws java.io.IOException
end
in interface InputFilter
java.io.IOException
- If an error happenspublic int available()
InputFilter
available
in interface InputFilter
public boolean isFinished()
InputFilter
isFinished
in interface InputFilter
true
if the request body has been fully read, otherwise
false
Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.