net.sf.ooweb.http
Class RequestHandler

java.lang.Object
  extended by net.sf.ooweb.http.RequestHandler

public class RequestHandler
extends java.lang.Object

RequestHandler - methods to assist with request operations and parsing without being tied to any given HTTP or application implementation. Each specific underlying HTTP connection class should delegate all request processing functionality here.

Since:
0.7
Author:
Darren Davison, Robin Rawson-Tetley

Constructor Summary
RequestHandler(java.lang.String context, java.lang.String path, java.lang.String queryString, java.util.Map<java.lang.String,java.lang.String> headers, byte[] body)
           
 
Method Summary
 ResponseState handle()
          Generic OOWeb request handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestHandler

public RequestHandler(java.lang.String context,
                      java.lang.String path,
                      java.lang.String queryString,
                      java.util.Map<java.lang.String,java.lang.String> headers,
                      byte[] body)
Parameters:
context - the first component of the path - ie where it was deployed
path - the remainder of the path of the HTTP request
queryString - the name/value pairs from the query string of the HTTP request
headers - all of the HTTP headers sent by the client
body - the POST data (if any) from the HTTP request
Method Detail

handle

public ResponseState handle()
                     throws HandlingException,
                            NotAuthenticatedException,
                            NotAuthorisedException
Generic OOWeb request handler. This is called by the server specific handlers to manage the request. All processing of OOWeb functionality shouild be delegated here by the underlying server.

Returns:
a ResponseState object detailing the response to be marshalled to the underlying application or http server
Throws:
HandlingException
NotAuthenticatedException
NotAuthorisedException


Copyright (C) 2005-2007 OOWeb Authors.