net.sf.ooweb.http
Class RequestHandler
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 deployedpath
- the remainder of the path of the HTTP requestqueryString
- the name/value pairs from the query string of the
HTTP requestheaders
- all of the HTTP headers sent by the clientbody
- the POST data (if any) from the HTTP request
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.