| com.jcorporate.expresso.core.controller.ExpressoActionServlet
All known Subclasses: com.jcorporate.expresso.services.test.ActionTestServlet,
ExpressoActionServlet | public class ExpressoActionServlet extends ActionServlet implements ControllerFactory(Code) | | Title: Expresso Project
Description:
Copyright: Copyright (c) 2001, 2002, 2003
Company: Jcorporate
author: Michael Rimov, Extended by Peter Pilgrim author: Michael Rimov, Peter Pilgrim, Portions created by the Struts development author: team version: 2.0 See Also: ExpressoPlugin See Also: ExpressoRequestProcessor |
Method Summary | |
public void | destroy() | public synchronized Controller | getController(String className) Struts compatible version of the controller factory. | public synchronized Controller | getController(String moduleName, String className) Struts compatible version of the controller factory. | public Controller | getController(ControllerRequest request) This method is similar to getController(className) except that it may try
to route the construction call to the appropriate controlling servlet
Parameters: request - The ControllerRequest that has all the parameters weneed to construct the appropriate controller. | public void | init() | protected ModuleConfig | initExpressoFromConfigDirectory(String prefix, String paths) | protected void | initExpressoSubapplication(String prefix, ModuleConfig config, String configPath) Initialise Expresso sub application, merge the separate configuration
into suppliced Struts config XML, normally default. | protected ModuleConfig | initModuleConfig(String prefix, String paths) Initialize the application configuration information for the
specified module.
Additional notes by Peter Pilgrim Sun Feb 16 13:53:07 GMT 2003
We require the interception of the implementation of the
ActionServlet.initModuleConfig method in this
class, because we need to keep a record of all the defined
modules and their configurations. | protected void | loadOneConfigFile(Digester digester, InputSource is) |
mapModuleConfig | protected Map mapModuleConfig(Code) | | |
ExpressoActionServlet | public ExpressoActionServlet()(Code) | | Default constructor
|
destroy | public void destroy()(Code) | | Remove myself as a controller factory
|
getController | public synchronized Controller getController(String className) throws ControllerException(Code) | | Struts compatible version of the controller factory. Adds the created class
to the actions list if it doesn't exist already.
Parameters: className - The className of the controller to get/instantiate an instantiated Controller object throws: ControllerException - upon error |
getController | public synchronized Controller getController(String moduleName, String className) throws ControllerException(Code) | | Struts compatible version of the controller factory. Adds the created class
to the actions list if it doesn't exist already.
Parameters: moduleName - The Struts 1.1 module name Parameters: className - The className of the controller to get/instantiate an instantiated Controller object throws: ControllerException - upon error |
getController | public Controller getController(ControllerRequest request) throws ControllerException(Code) | | This method is similar to getController(className) except that it may try
to route the construction call to the appropriate controlling servlet
Parameters: request - The ControllerRequest that has all the parameters weneed to construct the appropriate controller. an instantiated Controller object throws: ControllerException - if there's an error instantiating thecontroller |
initExpressoFromConfigDirectory | protected ModuleConfig initExpressoFromConfigDirectory(String prefix, String paths) throws ServletException(Code) | | Initialize the configuration based upon the context ConfigDir parameter
typical in the older style Expresso [pre 6 :)]
Parameters: prefix - the prefix for the module Parameters: paths - the Module config to add to true if succesfully initialized from config directory, falseotherwize, indicating that the configuration system should continue andtry to load from the classpath. throws: ServletException - upon error |
initExpressoSubapplication | protected void initExpressoSubapplication(String prefix, ModuleConfig config, String configPath) throws ServletException(Code) | | Initialise Expresso sub application, merge the separate configuration
into suppliced Struts config XML, normally default.
Parameters: prefix - the sub application prefix Parameters: config - the module configuration Parameters: configPath - the module path to load to throws: ServletException - upon error |
initModuleConfig | protected ModuleConfig initModuleConfig(String prefix, String paths) throws ServletException(Code) | | Initialize the application configuration information for the
specified module.
Additional notes by Peter Pilgrim Sun Feb 16 13:53:07 GMT 2003
We require the interception of the implementation of the
ActionServlet.initModuleConfig method in this
class, because we need to keep a record of all the defined
modules and their configurations. It makes easy to implement
controller factory interface.
Parameters: prefix - Module prefix for this module Parameters: paths - Comma-separated list of context-relative resource path(s)for this modules's configuration resource(s) Constructed Module Config throws: ServletException - if initialization cannot be performed since: Struts 1.1 |
loadOneConfigFile | protected void loadOneConfigFile(Digester digester, InputSource is) throws ServletException(Code) | | Load one configuration file
Parameters: digester - the digester to parse Parameters: is - the input source to parse throws: ServletException - upon error |
|
|