|
Apache Tomcat 6.0.35 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.coyote.http11.filters.VoidInputFilter
public class VoidInputFilter
Void input filter, which returns -1 when attempting a read. Used with a GET, HEAD, or a similar request.
| Field Summary | |
|---|---|
protected static ByteChunk |
ENCODING
|
protected static java.lang.String |
ENCODING_NAME
|
| Constructor Summary | |
|---|---|
VoidInputFilter()
|
|
| Method Summary | |
|---|---|
int |
available()
Amount of bytes still available in a buffer. |
int |
doRead(ByteChunk chunk,
Request req)
Write some bytes. |
long |
end()
End the current request. |
ByteChunk |
getEncodingName()
Return the name of the associated encoding; Here, the value is "void". |
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 reauest. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String ENCODING_NAME
protected static final ByteChunk ENCODING
| Constructor Detail |
|---|
public VoidInputFilter()
| Method Detail |
|---|
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 void setBuffer(InputBuffer buffer)
setBuffer in interface InputFilterpublic void recycle()
recycle in interface InputFilterpublic ByteChunk getEncodingName()
getEncodingName in interface InputFilter
public long end()
throws java.io.IOException
end in interface InputFilterjava.io.IOExceptionpublic int available()
available in interface InputFilter
|
Apache Tomcat 6.0.35 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||