| org.apache.beehive.netui.pageflow.AutoRegisterActionServlet org.apache.beehive.netui.pageflow.PageFlowActionServlet
All known Subclasses: org.apache.beehive.netui.pageflow.DynamicSubappActionServlet,
PageFlowActionServlet | public class PageFlowActionServlet extends AutoRegisterActionServlet (Code) | | 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
ModuleConfigLocator classes in /WEB-INF/beehive-netui-config.xml using the
<module-config-locators> element.
|
Inner Class :public static class DefaultModuleConfigLocator implements ModuleConfigLocator,Serializable | |
Inner Class :protected static class LegacyModuleConfigLocator extends DefaultModuleConfigLocator | |
addServletMapping | public void addServletMapping(String servletName, String urlPattern)(Code) | | Struts keeps track of the action servlet URL pattern (e.g., *.do) so it can construct action
URIs. We want to prevent it from noticing *.jpf so it doesn't use that to construct the URIs.
|
getDefaultModuleConfigLocators | protected ModuleConfigLocator[] getDefaultModuleConfigLocators()(Code) | | Get the base list of ModuleConfigLocators, to specify locations for auto-registered Struts modules. By default,
this ActionServlet auto-registers Struts modules whose configuration files are located at
"/WEB-INF/classes/_pageflow/struts-config-<module>". Overriding this method allows
alternate locations to be specified. When an unrecognized Struts module is requested, each registered
ModuleConfigLocator is queried for a possible path to the configuration file for the module. If the
configuration file is found, the module is auto-registered against the file.
|
getModuleConfPath | public String getModuleConfPath(String modulePath)(Code) | | Get the webapp-relative path to the Struts module configration file for a given module path. By default,
this is "/WEB-INF/classes/_pageflow/struts-config-<module>", but alternate
locations can be specified by adding
ModuleConfigLocator s.
Parameters: modulePath - the Struts module path. a String that is the path to the Struts configuration file, relative to the web application root. See Also: PageFlowActionServlet.getDefaultModuleConfigLocators |
moduleCanHandlePath | protected boolean moduleCanHandlePath(ModuleConfig moduleConfig, RequestProcessor rp, String servletPath)(Code) | | Tell whether the given module can handle the given path. If this is the root module (path=="") and it's a
Page Flow module, then it shouldn't try to handle any path that has a slash in it -- it only handles local
actions.
|
Fields inherited from org.apache.beehive.netui.pageflow.AutoRegisterActionServlet | public static String MODULE_CONFIG_LOCATOR_CLASS_ATTR(Code)(Java Doc)
|
Methods inherited from org.apache.beehive.netui.pageflow.AutoRegisterActionServlet | public void clearRegisteredModules()(Code)(Java Doc) public void destroy()(Code)(Java Doc) public ModuleConfig ensureModuleRegistered(String modulePath, ServletRequest request) throws IOException, ServletException(Code)(Java Doc) public ModuleConfig ensureModuleRegistered(String modulePath) throws IOException, ServletException(Code)(Java Doc) protected URL getConfigResource(String path) throws MalformedURLException(Code)(Java Doc) protected InputStream getConfigResourceAsStream(String path)(Code)(Java Doc) protected ModuleConfigLocator[] getDefaultModuleConfigLocators()(Code)(Java Doc) public String getInitParameter(String s)(Code)(Java Doc) public Enumeration getInitParameterNames()(Code)(Java Doc) public String getModuleConfPath(String modulePath)(Code)(Java Doc) protected ModuleConfig getModuleConfig(String modulePath, ServletRequest request, ServletResponse response) throws IOException, ServletException(Code)(Java Doc) public ModuleConfigLocator[] getModuleConfigLocators()(Code)(Java Doc) public void init() throws ServletException(Code)(Java Doc) protected Digester initConfigDigester() throws ServletException(Code)(Java Doc) protected ModuleConfig initModuleConfig(String prefix, String paths) throws ServletException(Code)(Java Doc) protected boolean moduleCanHandlePath(ModuleConfig moduleConfig, RequestProcessor rp, String servletPath)(Code)(Java Doc) protected void process(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)(Java Doc) protected boolean processUnhandledAction(HttpServletRequest request, HttpServletResponse response, String uri) throws IOException, ServletException(Code)(Java Doc) protected synchronized ModuleConfig registerModule(String modulePath, String configFilePath) throws ServletException(Code)(Java Doc)
|
|
|