| com.jcorporate.expresso.core.controller.ExpressoRequestProcessor
ExpressoRequestProcessor | public class ExpressoRequestProcessor extends TilesRequestProcessor (Code) | | Title: Expresso Project Description: Copyright: Copyright (c)
2001, 2002, 2003 Company: Jcorporate
author: Peter Pilgrim, Wed Feb 12 20:13:46 GMT 2003 version: $Id: ExpressoRequestProcessor.java,v 1.10 2004/11/17 20:48:06 lhamel Exp $ |
Field Summary | |
protected static Log | log Commons Logging instance. |
log | protected static Log log(Code) | | Commons Logging instance.
|
ExpressoRequestProcessor | public ExpressoRequestProcessor()(Code) | | Default constructor
|
createAction | public Action createAction(String className)(Code) | | Creates and return the Action controller. Request processor
normally cache there action instances internally, therefore only an
Action is normally created just once.
Parameters: className - the class name of the action to create the action controller or null if the action cannotbe created at all. |
init | public void init(ActionServlet servlet, ModuleConfig moduleConfig) throws ServletException(Code) | | Initialize this request processor instance.
Parameters: servlet - The ActionServlet we are associated with Parameters: moduleConfig - The ModuleConfig we are associated with. throws: ServletException - If an error occur during initialization |
processForwardConfig | protected void processForwardConfig(HttpServletRequest request, HttpServletResponse response, ForwardConfig forward) throws java.io.IOException, javax.servlet.ServletException(Code) | | 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. It checks for
Parameters: request - The servlet request Parameters: response - The servlet response Parameters: forward - the default forward config that Struts was handed bythe controller |
processPath | protected String processPath(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws IOException(Code) | | subclass in order to allow ExpressoActionServlet to be a dispatcher
for any finite-state-machine request which includes parameters for controller &
state. if ExpressoActionServlet does not play this role, URLs must have
a known controller embedded, which is not good for a JSP, for example,
that isn't supposed to know about controllers. instead,
ExpressoServletAction can be the "universal dispatcher"
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 .
Parameters: httpServletRequest - The servlet request we are processing String |
processPrepocess | public boolean processPrepocess(HttpServletRequest request, HttpServletResponse response)(Code) | | This method is call for each request. By default it does nothing with
the requests, but Expresso Framework may use this call in the future to
handle security and authentication.
Parameters: request - The servlet request object Parameters: response - The servlet response object true if successful |
|
|