|
Apache Tomcat 7.0.28 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.coyote.http11.AbstractInputBuffer<NioChannel>
org.apache.coyote.http11.InternalNioInputBuffer
public class InternalNioInputBuffer
Implementation of InputBuffer which provides HTTP request header parsing as well as transfer decoding.
| Nested Class Summary | |
|---|---|
static class |
InternalNioInputBuffer.HeaderParseData
|
protected class |
InternalNioInputBuffer.SocketInputBuffer
This class is an input buffer which will read its data from an input stream. |
| Field Summary |
|---|
| Fields inherited from class org.apache.coyote.http11.AbstractInputBuffer |
|---|
activeFilters, buf, end, filterLibrary, headers, HTTP_TOKEN_CHAR, inputStreamInputBuffer, lastActiveFilter, lastValid, parsingHeader, pos, request, sm, swallowInput |
| Constructor Summary | |
|---|---|
InternalNioInputBuffer(Request request,
int headerBufferSize)
Alternate constructor. |
|
| Method Summary | |
|---|---|
protected boolean |
fill(boolean block)
Fill the internal buffer using data from the underlying input stream. |
protected boolean |
fill(boolean timeout,
boolean block)
|
int |
getParsingRequestLinePhase()
|
protected void |
init(SocketWrapper<NioChannel> socketWrapper,
AbstractEndpoint endpoint)
|
void |
nextRequest()
End processing of current HTTP request. |
boolean |
parseHeaders()
Parse the HTTP headers. |
boolean |
parseRequestLine(boolean useAvailableDataOnly)
Read the request line. |
void |
recycle()
Recycle the input buffer. |
| Methods inherited from class org.apache.coyote.http11.AbstractInputBuffer |
|---|
addActiveFilter, addFilter, available, doRead, endRequest, getFilters, setSwallowInput |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InternalNioInputBuffer(Request request,
int headerBufferSize)
| Method Detail |
|---|
public void recycle()
recycle in class AbstractInputBuffer<NioChannel>public void nextRequest()
nextRequest in class AbstractInputBuffer<NioChannel>
public boolean parseRequestLine(boolean useAvailableDataOnly)
throws IOException
parseRequestLine in class AbstractInputBuffer<NioChannel>IOException - If an exception occurs during the underlying socket
read operations, or if the given buffer is not big enough to accommodate
the whole line.
public boolean parseHeaders()
throws IOException
parseHeaders in class AbstractInputBuffer<NioChannel>IOExceptionpublic int getParsingRequestLinePhase()
protected void init(SocketWrapper<NioChannel> socketWrapper,
AbstractEndpoint endpoint)
throws IOException
init in class AbstractInputBuffer<NioChannel>IOException
protected boolean fill(boolean block)
throws IOException,
EOFException
fill in class AbstractInputBuffer<NioChannel>IOException
EOFException
protected boolean fill(boolean timeout,
boolean block)
throws IOException,
EOFException
IOException
EOFException
|
Apache Tomcat 7.0.28 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||