|
Apache Tomcat 7.0.37 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.coyote.http11.filters.IdentityInputFilter
public class IdentityInputFilter
Identity input filter.
Field Summary | |
---|---|
protected InputBuffer |
buffer
Next buffer in the pipeline. |
protected long |
contentLength
Content length. |
protected static ByteChunk |
ENCODING
|
protected static String |
ENCODING_NAME
|
protected ByteChunk |
endChunk
Chunk used to read leftover bytes. |
protected long |
remaining
Remaining bytes. |
Constructor Summary | |
---|---|
IdentityInputFilter()
|
Method Summary | |
---|---|
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()
Deprecated. Unused - will be removed in 8.0.x |
ByteChunk |
getEncodingName()
Return the name of the associated encoding; Here, the value is "identity". |
long |
getRemaining()
Deprecated. Unused - will be removed in 8.0.x |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String ENCODING_NAME
protected static final ByteChunk ENCODING
protected long contentLength
protected long remaining
protected InputBuffer buffer
protected ByteChunk endChunk
Constructor Detail |
---|
public IdentityInputFilter()
Method Detail |
---|
@Deprecated public long getContentLength()
@Deprecated public long getRemaining()
public int doRead(ByteChunk chunk, Request req) throws IOException
doRead
in interface InputFilter
doRead
in interface InputBuffer
IOException
public void setRequest(Request request)
setRequest
in interface InputFilter
public long end() throws IOException
end
in interface InputFilter
IOException
public int available()
available
in interface InputFilter
public void setBuffer(InputBuffer buffer)
setBuffer
in interface InputFilter
public void recycle()
recycle
in interface InputFilter
public ByteChunk getEncodingName()
getEncodingName
in interface InputFilter
|
Apache Tomcat 7.0.37 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |