|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectGenericServlet
HttpServlet
ActionServlet
AutoRegisterActionServlet
PageFlowActionServlet
public class PageFlowActionServlet
ActionServlet that dynamically registers modules based on naming/location conventions for Struts
configuration files that are generated by the Page Flow compiler. These files are located in
/WEB-INF/.pageflow-struts-generated, and are named jpf-struts-config-module-name.xml.
The user may specify additional PageFlowActionServlet.DefaultModuleConfigLocator
classes in web.xml, using the
"moduleConfigLocators" init-parameter; this allows the user to define other patterns for
auto-registered Struts modules.
Nested Class Summary | |
---|---|
static class |
PageFlowActionServlet.DefaultModuleConfigLocator
Default ModuleConfigLocator that looks for Struts module configuration files according to the pattern "/WEB-INF/.pageflow-struts-generated/jpf-struts-config-<module>". |
protected static class |
PageFlowActionServlet.LegacyModuleConfigLocator
ModuleConfigLocator that looks for legacy Struts module configuration files according to the pattern "/WEB-INF/jpf-struts-config-<module>". |
Nested classes/interfaces inherited from class AutoRegisterActionServlet |
---|
AutoRegisterActionServlet.ModuleConfigLocator |
Field Summary |
---|
Fields inherited from class AutoRegisterActionServlet |
---|
MODULE_CONFIG_LOCATOR_CLASS_ATTR |
Fields inherited from class ActionServlet |
---|
config, configDigester, convertNull, dataSources, debug, internal, internalName, log, processor, registrations, servletMapping, servletName |
Constructor Summary | |
---|---|
PageFlowActionServlet()
|
Method Summary | |
---|---|
void |
addServletMapping(String servletName,
String urlPattern)
Struts keeps track of the action servlet URL pattern (e.g., *.do) so it can construct action URIs. |
protected AutoRegisterActionServlet.ModuleConfigLocator[] |
getDefaultModuleConfigLocators()
Get the base list of ModuleConfigLocators, to specify locations for auto-registered Struts modules. |
String |
getModuleConfPath(String modulePath)
Get the webapp-relative path to the Struts module configration file for a given module path. |
void |
init(ServletConfig config)
|
Methods inherited from class ActionServlet |
---|
destroyApplications, destroyConfigDigester, destroyInternal, destroyModules, doGet, doPost, findDataSource, findFormBean, findForward, findMapping, getApplicationConfig, getDebug, getInternal, getModuleConfig, getRequestProcessor, getResources, init, initApplicationConfig, initApplicationDataSources, initApplicationMessageResources, initApplicationPlugIns, initDataSources, initInternal, initModuleMessageResources, initModulePlugIns, initOther, initServlet, log |
Methods inherited from class HttpServlet |
---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class GenericServlet |
---|
getServletConfig, getServletContext, getServletInfo, getServletName, log, log |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PageFlowActionServlet()
Method Detail |
---|
protected AutoRegisterActionServlet.ModuleConfigLocator[] getDefaultModuleConfigLocators()
getDefaultModuleConfigLocators
in class AutoRegisterActionServlet
public void init(ServletConfig config) throws ServletException
init
in interface Servlet
init
in class AutoRegisterActionServlet
ServletException
public String getModuleConfPath(String modulePath)
PageFlowActionServlet.DefaultModuleConfigLocator
s.
getModuleConfPath
in class AutoRegisterActionServlet
modulePath
- the Struts module path.
getDefaultModuleConfigLocators()
public void addServletMapping(String servletName, String urlPattern)
addServletMapping
in class ActionServlet
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |