org.apache.coyote.http11.filters
public class IdentityInputFilter extends java.lang.Object implements InputFilter
| Modifier and Type | Field and Description |
|---|---|
protected InputBuffer |
buffer
Next buffer in the pipeline.
|
protected long |
contentLength
Content length.
|
protected static ByteChunk |
ENCODING |
protected static java.lang.String |
ENCODING_NAME |
protected ByteChunk |
endChunk
Chunk used to read leftover bytes.
|
protected long |
remaining
Remaining bytes.
|
| Constructor and Description |
|---|
IdentityInputFilter() |
| Modifier and Type | Method and Description |
|---|---|
int |
available()
Amount of bytes still available in a buffer.
|
int |
doRead(ByteChunk chunk,
Request req)
Read bytes.
|
long |
end()
End the current request.
|
long |
getContentLength()
Get content length.
|
ByteChunk |
getEncodingName()
Return the name of the associated encoding; Here, the value is
"identity".
|
long |
getRemaining()
Get remaining bytes.
|
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)
Read the content length from the request.
|
protected static final java.lang.String ENCODING_NAME
protected static final ByteChunk ENCODING
protected long contentLength
protected long remaining
protected InputBuffer buffer
protected ByteChunk endChunk
public long getContentLength()
public long getRemaining()
public int doRead(ByteChunk chunk, Request req) throws java.io.IOException
doRead in interface InputFilterdoRead in interface InputBufferjava.io.IOExceptionpublic void setRequest(Request request)
setRequest in interface InputFilterpublic long end()
throws java.io.IOException
end in interface InputFilterjava.io.IOExceptionpublic int available()
available in interface InputFilterpublic void setBuffer(InputBuffer buffer)
setBuffer in interface InputFilterpublic void recycle()
recycle in interface InputFilterpublic ByteChunk getEncodingName()
getEncodingName in interface InputFilterCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.