|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.struts.action.RequestProcessor
org.apache.struts.tiles.TilesRequestProcessor
com.jcorporate.expresso.core.controller.ExpressoRequestProcessor
Title: Expresso Project Description: Copyright: Copyright (c) 2001, 2002, 2003 Company: Jcorporate
| Field Summary | |
protected static org.apache.commons.logging.Log |
log
Commons Logging instance. |
| Fields inherited from class org.apache.struts.tiles.TilesRequestProcessor |
definitionsFactory |
| Fields inherited from class org.apache.struts.action.RequestProcessor |
actions, appConfig, INCLUDE_PATH_INFO, INCLUDE_SERVLET_PATH, moduleConfig, servlet |
| Constructor Summary | |
ExpressoRequestProcessor()
Default constructor |
|
| Method Summary | |
org.apache.struts.action.Action |
createAction(String className)
Creates and return the Action controller. |
void |
init(org.apache.struts.action.ActionServlet servlet,
org.apache.struts.config.ModuleConfig moduleConfig)
Initialize this request processor instance. |
protected void |
processForwardConfig(HttpServletRequest request,
HttpServletResponse response,
org.apache.struts.config.ForwardConfig forward)
This method was created specifically to allow dynamic URL forwarding since we cannot muck with the Struts 1.1 configuration due to the 'freeze()' method. |
protected String |
processPath(HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
subclass in order to allow ExpressoActionServlet to be a dispatcher for any finite-state-machine request which includes parameters for controller & state. |
boolean |
processPrepocess(HttpServletRequest request,
HttpServletResponse response)
This method is call for each request. |
protected boolean |
processValidate(HttpServletRequest request,
HttpServletResponse response,
org.apache.struts.action.ActionForm form,
org.apache.struts.action.ActionMapping mapping)
|
| Methods inherited from class org.apache.struts.tiles.TilesRequestProcessor |
doForward, getDefinitionsFactory, initDefinitionsMapping, internalModuleRelativeForward, internalModuleRelativeInclude, processTilesDefinition |
| Methods inherited from class org.apache.struts.action.RequestProcessor |
destroy, doInclude, getDebug, getInternal, getServletContext, log, log, process, processActionCreate, processActionForm, processActionForward, processActionPerform, processContent, processException, processForward, processInclude, processLocale, processMapping, processMultipart, processNoCache, processPopulate, processPreprocess, processRoles |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static org.apache.commons.logging.Log log
| Constructor Detail |
public ExpressoRequestProcessor()
| Method Detail |
public org.apache.struts.action.Action createAction(String className)
Action controller. Request processor
normally cache there action instances internally, therefore only an
Action is normally created just once.
className - the class name of the action to create
null if the action cannot
be created at all.
public void init(org.apache.struts.action.ActionServlet servlet,
org.apache.struts.config.ModuleConfig moduleConfig)
throws ServletException
servlet - The ActionServlet we are associated withmoduleConfig - The ModuleConfig we are associated with.
ServletException - If an error occur during initialization
public boolean processPrepocess(HttpServletRequest request,
HttpServletResponse response)
request - The servlet request objectresponse - The servlet response object
protected void processForwardConfig(HttpServletRequest request,
HttpServletResponse response,
org.apache.struts.config.ForwardConfig forward)
throws IOException,
ServletException
request - The servlet requestresponse - The servlet responseforward - the default forward config that Struts was handed by
the controller
IOException
ServletException
protected String processPath(HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
throws IOException
Identify and return the path component (from the request URI) that
we will use to select an ActionMapping with which to dispatch.
If no such path can be identified, create an error response and return
null.
httpServletRequest - The servlet request we are processing
IOException
protected boolean processValidate(HttpServletRequest request,
HttpServletResponse response,
org.apache.struts.action.ActionForm form,
org.apache.struts.action.ActionMapping mapping)
throws IOException,
ServletException
IOException
ServletException
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||