|
Apache Tomcat 7.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.coyote.http11.AbstractInputBuffer
public abstract class AbstractInputBuffer
Field Summary | |
---|---|
protected InputFilter[] |
activeFilters
Active filters (in order). |
protected byte[] |
buf
Pointer to the current read buffer. |
protected int |
end
Pos of the end of the header in the buffer, which is also the start of the body. |
protected InputFilter[] |
filterLibrary
Filter library. |
protected MimeHeaders |
headers
Headers of the associated request. |
protected InputStream |
inputStream
Underlying input stream. |
protected InputBuffer |
inputStreamInputBuffer
Underlying input buffer. |
protected int |
lastActiveFilter
Index of the last active filter. |
protected int |
lastValid
Last valid byte. |
protected boolean |
parsingHeader
State. |
protected int |
pos
Position in the buffer. |
protected Request |
request
Associated Coyote request. |
protected static StringManager |
sm
The string manager for this package. |
protected boolean |
swallowInput
Swallow input ? |
Constructor Summary | |
---|---|
AbstractInputBuffer()
|
Method Summary | |
---|---|
void |
addActiveFilter(InputFilter filter)
Add an input filter to the filter library. |
void |
addFilter(InputFilter filter)
Add an input filter to the filter library. |
void |
clearFilters()
Clear filters. |
int |
doRead(ByteChunk chunk,
Request req)
Read some bytes. |
void |
endRequest()
End request (consumes leftover bytes). |
protected abstract boolean |
fill(boolean block)
|
InputFilter[] |
getFilters()
Get filters. |
InputStream |
getInputStream()
Get the underlying socket input stream. |
void |
nextRequest()
End processing of current HTTP request. |
abstract boolean |
parseHeaders()
|
abstract boolean |
parseRequestLine(boolean useAvailableDataOnly)
|
void |
recycle()
Recycle the input buffer. |
void |
setInputStream(InputStream inputStream)
Set the underlying socket input stream. |
void |
setSwallowInput(boolean swallowInput)
Set the swallow input flag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final StringManager sm
protected Request request
protected MimeHeaders headers
protected boolean parsingHeader
protected boolean swallowInput
protected byte[] buf
protected int lastValid
protected int pos
protected int end
protected InputStream inputStream
protected InputBuffer inputStreamInputBuffer
protected InputFilter[] filterLibrary
protected InputFilter[] activeFilters
protected int lastActiveFilter
Constructor Detail |
---|
public AbstractInputBuffer()
Method Detail |
---|
public abstract boolean parseRequestLine(boolean useAvailableDataOnly) throws IOException
IOException
public abstract boolean parseHeaders() throws IOException
IOException
protected abstract boolean fill(boolean block) throws IOException
IOException
public void setInputStream(InputStream inputStream)
public InputStream getInputStream()
public void addFilter(InputFilter filter)
public InputFilter[] getFilters()
public void clearFilters()
public void addActiveFilter(InputFilter filter)
public void setSwallowInput(boolean swallowInput)
public void recycle()
public void nextRequest()
public void endRequest() throws IOException
IOException
- an underlying I/O error occurredpublic int doRead(ByteChunk chunk, Request req) throws IOException
doRead
in interface InputBuffer
IOException
|
Apache Tomcat 7.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |