net.nplus1.anduril.web
Class ContextManager

java.lang.Object
  extended bynet.nplus1.anduril.web.ContextManager

public class ContextManager
extends java.lang.Object

Class that is used to get data from the HTTP specific request and convert into a protocol independent context for processing. It provides methods for converting between the two formats.


Constructor Summary
ContextManager()
           
 
Method Summary
static RequestContext buildContext(javax.servlet.http.HttpServletRequest request)
          Method to convert from HttpServletRequest to a RequestContext.
static void updateRequest(RequestContext context, javax.servlet.http.HttpServletRequest request)
          Method to transfer data from RequestContext to HttpServletRequest.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextManager

public ContextManager()
Method Detail

buildContext

public static RequestContext buildContext(javax.servlet.http.HttpServletRequest request)
Method to convert from HttpServletRequest to a RequestContext.

Parameters:
request - the HttpServletRequest to convert
Returns:
the converted RequestContext

updateRequest

public static void updateRequest(RequestContext context,
                                 javax.servlet.http.HttpServletRequest request)
Method to transfer data from RequestContext to HttpServletRequest.

Parameters:
context - the RequestContext data to put in the HTTP request
request - the HttpServletRequest to fill out with data