Class RequestProcessor

java.lang.Object
org.apache.struts.action.RequestProcessor
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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    Return a string for the current time and date, sutiable for display in log files and output to standout:
    void
    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 Details

    • RequestProcessor

      public RequestProcessor()
  • Method Details

    • 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