* Parsing state - used for non blocking parsing so that
* when more data arrives, we can pick up where we left off.
*/
- protected boolean parsingHeader;
protected boolean parsingRequestLine;
protected int parsingRequestLinePhase = 0;
protected boolean parsingRequestLineEol = false;
// --------------------------------------------------------- Public Methods
/**
- * Returns true if there are bytes available from the socket layer
- * @return boolean
- * @throws IOException
- */
- public boolean isReadable() throws IOException {
- return (pos < lastValid) || (nbRead()>0);
- }
-
- /**
* Issues a non blocking read
* @return int
* @throws IOException
@Override
public void nextRequest() {
super.nextRequest();
- parsingHeader = true;
headerParsePos = HeaderParsePosition.HEADER_START;
parsingRequestLine = true;
parsingRequestLinePhase = 0;