| Modifier and Type | Field and Description |
|---|---|
| protected InputBuffer | buffer
Next buffer in the pipeline. |
| protected long | contentLength
Content length. |
| protected static final ByteChunk | |
| protected static final String | |
| private final int | |
| protected long | remaining
Remaining bytes. |
| private static final StringManager | |
| protected ByteBuffer | tempRead
ByteBuffer used to read leftover bytes. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | available()
Implements org. Amount of bytes still available in a buffer. |
| public int | doRead(ApplicationBufferHandler
ApplicationBufferHandler that provides the buffer to read data into. handler)Implements org. Read from the input stream into the ByteBuffer provided by the ApplicationBufferHandler. |
| public long | |
| public void | |
| public ByteBuffer | |
| public ByteChunk | getEncodingName()
Implements org. Return the name of the associated encoding; Here, the value is "identity". |
| public boolean | isFinished()
Implements org. Has the request body been read fully? |
| public void | recycle()
Implements org. Make the filter ready to process the next request. |
| public void | setBuffer(InputBuffer
The next buffer buffer)Implements org. Set the next buffer in the filter pipeline. |
| public void | |
| public void | setRequest(Request
The request to be associated with this filter request)Implements org. Read the content length from the request. |
| buffer | back to summary |
|---|---|
| protected InputBuffer buffer Next buffer in the pipeline. | |
| contentLength | back to summary |
|---|---|
| protected long contentLength Content length. | |
| ENCODING | back to summary |
|---|---|
| protected static final ByteChunk ENCODING | |
| ENCODING_NAME | back to summary |
|---|---|
| protected static final String ENCODING_NAME | |
| maxSwallowSize | back to summary |
|---|---|
| private final int maxSwallowSize | |
| remaining | back to summary |
|---|---|
| protected long remaining Remaining bytes. | |
| sm | back to summary |
|---|---|
| private static final StringManager sm | |
| tempRead | back to summary |
|---|---|
| protected ByteBuffer tempRead ByteBuffer used to read leftover bytes. | |
| IdentityInputFilter | back to summary |
|---|---|
| public IdentityInputFilter(int maxSwallowSize) | |
| available | back to summary |
|---|---|
| public int available() Implements org. Amount of bytes still available in a buffer.
| |
| doRead | back to summary |
|---|---|
| public int doRead(ApplicationBufferHandler handler) throws IOException Implements org. Doc from org. Read from the input stream into the ByteBuffer provided by the ApplicationBufferHandler. Important Note the current model assumes that the protocol will 'own' the ByteBuffer and return a pointer to it.
| |
| end | back to summary |
|---|---|
| public long end() throws IOException Implements org. Doc from org. End the current request.
| |
| expand | back to summary |
|---|---|
| public void expand(int size) Implements org.
| |
| getByteBuffer | back to summary |
|---|---|
| public ByteBuffer getByteBuffer() Implements org.
| |
| getEncodingName | back to summary |
|---|---|
| public ByteChunk getEncodingName() Implements org. Return the name of the associated encoding; Here, the value is "identity".
| |
| isFinished | back to summary |
|---|---|
| public boolean isFinished() Implements org. Doc from org. Has the request body been read fully?
| |
| recycle | back to summary |
|---|---|
| public void recycle() Implements org. Make the filter ready to process the next request.
| |
| setBuffer | back to summary |
|---|---|
| public void setBuffer(InputBuffer buffer) Implements org. Set the next buffer in the filter pipeline.
| |
| setByteBuffer | back to summary |
|---|---|
| public void setByteBuffer(ByteBuffer buffer) Implements org.
| |
| setRequest | back to summary |
|---|---|
| public void setRequest(Request request) Implements org. Read the content length from the request.
| |