|
|||||||||
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/classes/_pageflow, and are named struts-config-module-name.xml.
For auto-registration of config files in other locations, the user may specify additional
PageFlowActionServlet.DefaultModuleConfigLocator
classes in /WEB-INF/beehive-netui-config.xml using the
<module-config-locators>
element.
Nested Class Summary | |
---|---|
static class |
PageFlowActionServlet.DefaultModuleConfigLocator
Default ModuleConfigLocator that looks for Struts module configuration files according to the pattern "/WEB-INF/classes/_pageflow/struts-config-<module>". |
protected static class |
PageFlowActionServlet.LegacyModuleConfigLocator
ModuleConfigLocator that looks for legacy Struts module configuration files according to the pattern "/WEB-INF/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()
|
protected boolean |
moduleCanHandlePath(ModuleConfig moduleConfig,
RequestProcessor rp,
String servletPath)
Tell whether the given module can handle the given path. |
protected void |
process(HttpServletRequest request,
HttpServletResponse response)
This override of the base class process() registers a Struts module on the fly if the config file can be found in our standard place (named in our standard way), regardless of whether the module is configured in web.xml. |
protected boolean |
processUnhandledAction(HttpServletRequest request,
HttpServletResponse response,
String uri)
Last chance to handle an unhandled action URI. |
Methods inherited from class ActionServlet |
---|
destroyApplications, destroyConfigDigester, destroyDataSources, destroyInternal, destroyModules, doGet, doPost, findDataSource, findFormBean, findForward, findMapping, getApplicationConfig, getDebug, getInternal, getModuleConfig, getRequestProcessor, getResources, initApplicationConfig, initApplicationDataSources, initApplicationMessageResources, initApplicationPlugIns, initDataSources, initInternal, initModuleDataSources, 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, init, 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() throws ServletException
init
in class AutoRegisterActionServlet
ServletException
protected void process(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
AutoRegisterActionServlet
process
in class AutoRegisterActionServlet
IOException
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
protected boolean moduleCanHandlePath(ModuleConfig moduleConfig, RequestProcessor rp, String servletPath)
moduleCanHandlePath
in class AutoRegisterActionServlet
protected boolean processUnhandledAction(HttpServletRequest request, HttpServletResponse response, String uri) throws IOException, ServletException
processUnhandledAction
in class AutoRegisterActionServlet
true
if this method handled it (by forwarding somewhere or writing to the response).
IOException
ServletException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |