DLESE Tools
v1.6.0

org.dlese.dpc.schemedit
Class RequestProcessor

java.lang.Object
  extended by org.apache.struts.action.RequestProcessor
      extended by org.dlese.dpc.schemedit.RequestProcessor

public final class RequestProcessor
extends org.apache.struts.action.RequestProcessor

My first cut at a RequestProcessor.

Version:
$Id: RequestProcessor.java,v 1.16 2010/03/03 17:15:43 ostwald Exp $
Author:
Jonathan Ostwald

$Id: RequestProcessor.java,v 1.16 2010/03/03 17:15:43 ostwald Exp $


Field Summary
 
Fields inherited from class org.apache.struts.action.RequestProcessor
actions, INCLUDE_PATH_INFO, INCLUDE_SERVLET_PATH, log, moduleConfig, servlet
 
Constructor Summary
RequestProcessor()
           
 
Method Summary
static String getDateStamp()
          Return a string for the current time and date, sutiable for display in log files and output to standout:
 void process(HttpServletRequest request, HttpServletResponse response)
          Override process method to catch the infamous BeanUtils.populate exception, which is thrown when a session has timed out.
protected  void processPopulate(HttpServletRequest request, HttpServletResponse response, org.apache.struts.action.ActionForm form, org.apache.struts.action.ActionMapping mapping)
          NOT YET DOCUMENTED
protected  boolean processRoles(HttpServletRequest request, HttpServletResponse response, org.apache.struts.action.ActionMapping mapping)
          Since we do our roles processing in the AuthenticationFilter, the only job to do here is to create a sessionBean when necessary.
 
Methods inherited from class org.apache.struts.action.RequestProcessor
destroy, doForward, doInclude, getInternal, getServletContext, init, internalModuleRelativeForward, internalModuleRelativeInclude, log, log, processActionCreate, processActionForm, processActionPerform, processCachedMessages, processContent, processException, processForward, processForwardConfig, processInclude, processLocale, processMapping, processMultipart, processNoCache, processPath, processPreprocess, processValidate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestProcessor

public RequestProcessor()
Method Detail

process

public void process(HttpServletRequest request,
                    HttpServletResponse response)
             throws ServletException,
                    IOException
Override process method to catch the infamous BeanUtils.populate exception, which is thrown when a session has timed out. The problem is that we can't return a forward from here, so we probably have to create a new exception and catch it elsewhere (but where?).

Overrides:
process in class org.apache.struts.action.RequestProcessor
Parameters:
request - Description of the Parameter
response - Description of the Parameter
Throws:
ServletException - Description of the Exception
IOException - Description of the Exception

processPopulate

protected void processPopulate(HttpServletRequest request,
                               HttpServletResponse response,
                               org.apache.struts.action.ActionForm form,
                               org.apache.struts.action.ActionMapping mapping)
                        throws ServletException
NOT YET DOCUMENTED

Overrides:
processPopulate in class org.apache.struts.action.RequestProcessor
Parameters:
request - NOT YET DOCUMENTED
response - NOT YET DOCUMENTED
form - NOT YET DOCUMENTED
mapping - NOT YET DOCUMENTED
Throws:
ServletException - NOT YET DOCUMENTED

processRoles

protected boolean processRoles(HttpServletRequest request,
                               HttpServletResponse response,
                               org.apache.struts.action.ActionMapping mapping)
                        throws ServletException,
                               IOException
Since we do our roles processing in the AuthenticationFilter, the only job to do here is to create a sessionBean when necessary.

Overrides:
processRoles in class org.apache.struts.action.RequestProcessor
Throws:
ServletException
IOException

getDateStamp

public static String getDateStamp()
Return a string for the current time and date, sutiable for display in log files and output to standout:

Returns:
The dateStamp value

DLESE Tools
v1.6.0