|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.struts.action.ActionServlet
com.jcorporate.expresso.core.controller.ExpressoActionServlet
Title: Expresso Project Description: Copyright: Copyright (c) 2001, 2002, 2003 Company: Jcorporate
ExpressoPlugin,
ExpressoRequestProcessor,
Serialized Form| Field Summary | |
protected Map |
mapModuleConfig
|
| Fields inherited from class org.apache.struts.action.ActionServlet |
config, configDigester, convertNull, dataSources, debug, internal, internalName, log, processor, registrations, servletMapping, servletName |
| Constructor Summary | |
ExpressoActionServlet()
Default constructor |
|
| Method Summary | |
void |
destroy()
Remove myself as a controller factory |
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 |
Controller |
getController(String className)
Struts compatible version of the controller factory. |
Controller |
getController(String moduleName,
String className)
Struts compatible version of the controller factory. |
void |
init()
Initialization Code |
protected org.apache.struts.config.ModuleConfig |
initExpressoFromConfigDirectory(String prefix,
String paths)
Initialize the configuration based upon the context ConfigDir parameter typical in the older style Expresso [pre 6 :)] |
protected void |
initExpressoSubapplication(String prefix,
org.apache.struts.config.ModuleConfig config,
String configPath)
Initialise Expresso sub application, merge the separate configuration into suppliced Struts config XML, normally default. |
protected org.apache.struts.config.ModuleConfig |
initModuleConfig(String prefix,
String paths)
Initialize the application configuration information for the specified module. |
protected void |
loadOneConfigFile(org.apache.commons.digester.Digester digester,
org.xml.sax.InputSource is)
Load one configuration file |
| Methods inherited from class org.apache.struts.action.ActionServlet |
addServletMapping, destroyApplications, destroyConfigDigester, destroyDataSources, destroyInternal, destroyModules, doGet, doPost, findDataSource, findFormBean, findForward, findMapping, getApplicationConfig, getDebug, getInternal, getModuleConfig, getRequestProcessor, getResources, initApplicationConfig, initApplicationDataSources, initApplicationMessageResources, initApplicationPlugIns, initConfigDigester, initDataSources, initInternal, initModuleDataSources, initModuleMessageResources, initModulePlugIns, initOther, initServlet, log, process |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Map mapModuleConfig
| Constructor Detail |
public ExpressoActionServlet()
| Method Detail |
protected org.apache.struts.config.ModuleConfig initModuleConfig(String prefix,
String paths)
throws ServletException
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 theActionServlet.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.
prefix - Module prefix for this modulepaths - Comma-separated list of context-relative resource path(s)
for this modules's configuration resource(s)
ServletException - if initialization cannot be performed
protected org.apache.struts.config.ModuleConfig initExpressoFromConfigDirectory(String prefix,
String paths)
throws ServletException
prefix - the prefix for the modulepaths - the Module config to add to
ServletException - upon error
protected void loadOneConfigFile(org.apache.commons.digester.Digester digester,
org.xml.sax.InputSource is)
throws ServletException
digester - the digester to parseis - the input source to parse
ServletException - upon error
protected void initExpressoSubapplication(String prefix,
org.apache.struts.config.ModuleConfig config,
String configPath)
throws ServletException
prefix - the sub application prefixconfig - the module configurationconfigPath - the module path to load to
ServletException - upon error
public Controller getController(String className)
throws ControllerException
getController in interface ControllerFactoryclassName - The className of the controller to get/instantiate
ControllerException - upon error
public Controller getController(String moduleName,
String className)
throws ControllerException
getController in interface ControllerFactorymoduleName - The Struts 1.1 module nameclassName - The className of the controller to get/instantiate
ControllerException - upon error
public Controller getController(ControllerRequest request)
throws ControllerException
getController in interface ControllerFactoryrequest - The ControllerRequest that has all the parameters we
need to construct the appropriate controller.
ControllerException - if there's an error instantiating the
controller
public void init()
throws ServletException
ServletException - upon errorpublic void destroy()
destroy in interface Servlet
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||