Package org.dlese.dpc.schemedit
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturn a string for the current time and date, sutiable for display in log files and output to standout:voidprocess(HttpServletRequest request, HttpServletResponse response) Override process method to catch the infamous BeanUtils.populate exception, which is thrown when a session has timed out.protected voidprocessPopulate(HttpServletRequest request, HttpServletResponse response, org.apache.struts.action.ActionForm form, org.apache.struts.action.ActionMapping mapping) NOT YET DOCUMENTEDprotected booleanprocessRoles(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
-
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:
processin classorg.apache.struts.action.RequestProcessor- Parameters:
request- Description of the Parameterresponse- Description of the Parameter- Throws:
ServletException- Description of the ExceptionIOException- 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:
processPopulatein classorg.apache.struts.action.RequestProcessor- Parameters:
request- NOT YET DOCUMENTEDresponse- NOT YET DOCUMENTEDform- NOT YET DOCUMENTEDmapping- 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:
processRolesin classorg.apache.struts.action.RequestProcessor- Throws:
ServletExceptionIOException
-
getDateStamp
Return a string for the current time and date, sutiable for display in log files and output to standout:- Returns:
- The dateStamp value
-