Class CustomRequestProcessor

java.lang.Object
org.apache.struts.action.RequestProcessor

A customized RequestProcessor that checks the user's preferred Locale from the request each time. If a Locale is not in the session or the one in the session doesn't match the request, the Locale in the request is set to the session.
  • 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
    Creates a new instance of CustomRequestProcessor
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    processPreprocess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    Override of the base class's processPreprocess() method, delegates to the superclass method at the end

    Methods inherited from class com.echothree.view.client.web.struts.sprout.SproutRequestProcessor

    processActionPerform

    Methods inherited from class org.apache.struts.action.RequestProcessor

    destroy, doForward, doInclude, getInternal, getServletContext, init, internalModuleRelativeForward, internalModuleRelativeInclude, process, processActionCreate, processActionForm, processCachedMessages, processContent, processException, processForward, processForwardConfig, processInclude, processLocale, processMapping, processMultipart, processNoCache, processPath, processPopulate, processRoles, processValidate

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • processPreprocess

      protected boolean processPreprocess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Description copied from class: SecureRequestProcessor
      Override of the base class's processPreprocess() method, delegates to the superclass method at the end
      Overrides:
      processPreprocess in class SecureRequestProcessor
      Parameters:
      request - The current request
      response - The current response
      Returns:
      true, if the request should continue to be processed, false otherwise