org.mortbay.jetty
Class HttpConnection.RequestHandler

java.lang.Object
  extended by org.mortbay.jetty.HttpParser.EventHandler
      extended by org.mortbay.jetty.HttpConnection.RequestHandler
Enclosing class:
HttpConnection

private class HttpConnection.RequestHandler
extends HttpParser.EventHandler


Field Summary
(package private)  boolean _delayedHandling
           
 
Constructor Summary
private HttpConnection.RequestHandler()
           
 
Method Summary
 void content(Buffer ref)
           
 void headerComplete()
           
 void messageComplete(int contextLength)
           
 void parsedHeader(Buffer name, Buffer value)
          This is the method called by parser when a HTTP Header name and value is found
 void startRequest(Buffer method, Buffer uri, Buffer version)
          This is the method called by parser when the HTTP request line is parsed
 void startResponse(Buffer version, int status, Buffer reason)
          This is the method called by parser when the HTTP request line is parsed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_delayedHandling

boolean _delayedHandling
Constructor Detail

HttpConnection.RequestHandler

private HttpConnection.RequestHandler()
Method Detail

startRequest

public void startRequest(Buffer method,
                         Buffer uri,
                         Buffer version)
                  throws IOException
Description copied from class: HttpParser.EventHandler
This is the method called by parser when the HTTP request line is parsed

Specified by:
startRequest in class HttpParser.EventHandler
Throws:
IOException

parsedHeader

public void parsedHeader(Buffer name,
                         Buffer value)
Description copied from class: HttpParser.EventHandler
This is the method called by parser when a HTTP Header name and value is found

Overrides:
parsedHeader in class HttpParser.EventHandler

headerComplete

public void headerComplete()
                    throws IOException
Overrides:
headerComplete in class HttpParser.EventHandler
Throws:
IOException

content

public void content(Buffer ref)
             throws IOException
Specified by:
content in class HttpParser.EventHandler
Throws:
IOException

messageComplete

public void messageComplete(int contextLength)
                     throws IOException
Overrides:
messageComplete in class HttpParser.EventHandler
Throws:
IOException

startResponse

public void startResponse(Buffer version,
                          int status,
                          Buffer reason)
Description copied from class: HttpParser.EventHandler
This is the method called by parser when the HTTP request line is parsed

Specified by:
startResponse in class HttpParser.EventHandler