Java Doc for AutoRegisterActionServlet.java in  » Library » Apache-beehive-1.0.2-src » org » apache » beehive » netui » pageflow » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Library » Apache beehive 1.0.2 src » org.apache.beehive.netui.pageflow 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.beehive.netui.pageflow.AutoRegisterActionServlet

All known Subclasses:   org.apache.beehive.netui.pageflow.PageFlowActionServlet,
AutoRegisterActionServlet
public class AutoRegisterActionServlet extends ActionServlet (Code)
ActionServlet that automatically registers requested Struts modules based on a set of module configuration file locators. The user may specify ModuleConfigLocator classes in /WEB-INF/beehive-netui-config.xml using the <module-config-locators> element.

Inner Class :public static interface ModuleConfigLocator
Inner Class :static class MissingRootModuleControllerConfig extends ControllerConfig

Field Summary
public static  StringMODULE_CONFIG_LOCATOR_CLASS_ATTR
    


Method Summary
public  voidclearRegisteredModules()
     Clear the internal map of registered modules.
public  voiddestroy()
    
public  ModuleConfigensureModuleRegistered(String modulePath, ServletRequest request)
     Ensures that the Struts module for the given path is registered (dynamically, if necessary).
public  ModuleConfigensureModuleRegistered(String modulePath)
    
protected  URLgetConfigResource(String path)
     Get a resource URL for a module configuration file.
protected  InputStreamgetConfigResourceAsStream(String path)
     Get a resource stream for a module configuration file.
protected  ModuleConfigLocator[]getDefaultModuleConfigLocators()
     Get the base list of ModuleConfigLocators, to specify locations for auto-registered Struts modules.
public  StringgetInitParameter(String s)
    
public  EnumerationgetInitParameterNames()
    
public  StringgetModuleConfPath(String modulePath)
     Get the webapp-relative path to the Struts module configration file for a given module path, based on registered ModuleConfigLocators.
Parameters:
  modulePath - the Struts module path.
protected  ModuleConfiggetModuleConfig(String modulePath, ServletRequest request, ServletResponse response)
     Get the Struts ModuleConfig for the given module path.
public  ModuleConfigLocator[]getModuleConfigLocators()
     Get the current list of registered ModuleConfigLocators.
public  voidinit()
    
protected  DigesterinitConfigDigester()
    
protected  ModuleConfiginitModuleConfig(String prefix, String paths)
     This method is almost exactly the same as the base class initModuleConfig.
protected  booleanmoduleCanHandlePath(ModuleConfig moduleConfig, RequestProcessor rp, String servletPath)
     Tell whether the given module can handle the given path.
protected  voidprocess(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  booleanprocessUnhandledAction(HttpServletRequest request, HttpServletResponse response, String uri)
     Last chance to handle an unhandled action URI.
protected synchronized  ModuleConfigregisterModule(String modulePath, String configFilePath)
     Register a Struts module, initialized by the given configuration file.
Parameters:
  modulePath - the module path, starting at the webapp root, e.g., "/info/help".
Parameters:
  configFilePath - the path, starting at the webapp root, to the module configurationfile (e.g., "/WEB-INF/my-generated-struts-config-info-help.xml").

Field Detail
MODULE_CONFIG_LOCATOR_CLASS_ATTR
public static String MODULE_CONFIG_LOCATOR_CLASS_ATTR(Code)
ModuleConfigLocator





Method Detail
clearRegisteredModules
public void clearRegisteredModules()(Code)
Clear the internal map of registered modules.



destroy
public void destroy()(Code)



ensureModuleRegistered
public ModuleConfig ensureModuleRegistered(String modulePath, ServletRequest request) throws IOException, ServletException(Code)
Ensures that the Struts module for the given path is registered (dynamically, if necessary).
Parameters:
  modulePath - the module path, from the request URI.
Parameters:
  request - the current ServletRequest
throws:
  IOException -
throws:
  ServletException -



ensureModuleRegistered
public ModuleConfig ensureModuleRegistered(String modulePath) throws IOException, ServletException(Code)



getConfigResource
protected URL getConfigResource(String path) throws MalformedURLException(Code)
Get a resource URL for a module configuration file. By default, this looks in the ServletContext and in the context classloader.
Parameters:
  path - the path to the resource. an URL for the resource, or null if the resource is not found.
throws:
  MalformedURLException -



getConfigResourceAsStream
protected InputStream getConfigResourceAsStream(String path)(Code)
Get a resource stream for a module configuration file. By default, this looks in the ServletContext and in the context classloader.
Parameters:
  path - the path to the resource. an InputStream for the resource, or null if the resource is not found.



getDefaultModuleConfigLocators
protected ModuleConfigLocator[] getDefaultModuleConfigLocators()(Code)
Get the base list of ModuleConfigLocators, to specify locations for auto-registered Struts modules. By default, this list is empty; derived classes may override to provide locators, or the user may specify them using the "moduleConfigLocators" init-parameter. 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.



getInitParameter
public String getInitParameter(String s)(Code)



getInitParameterNames
public Enumeration getInitParameterNames()(Code)



getModuleConfPath
public String getModuleConfPath(String modulePath)(Code)
Get the webapp-relative path to the Struts module configration file for a given module path, based on registered ModuleConfigLocators.
Parameters:
  modulePath - the Struts module path. a String that is the path to the Struts configuration file, relative to the web application root,or null if no appropriate configuration file is found.
See Also:   AutoRegisterActionServlet.getDefaultModuleConfigLocators



getModuleConfig
protected ModuleConfig getModuleConfig(String modulePath, ServletRequest request, ServletResponse response) throws IOException, ServletException(Code)
Get the Struts ModuleConfig for the given module path. AutoRegisterActionServlet.ensureModuleRegistered
Parameters:
  modulePath - the module path, from the request URI.
Parameters:
  request - the current ServletRequest
Parameters:
  response - the current HttpServletResponse the Struts ModuleConfig that corresponds with modulePath
throws:
  IOException -
throws:
  ServletException -



getModuleConfigLocators
public ModuleConfigLocator[] getModuleConfigLocators()(Code)
Get the current list of registered ModuleConfigLocators. an array of registered ModuleConfigLocators.
See Also:   AutoRegisterActionServlet.getDefaultModuleConfigLocators



init
public void init() throws ServletException(Code)



initConfigDigester
protected Digester initConfigDigester() throws ServletException(Code)



initModuleConfig
protected ModuleConfig initModuleConfig(String prefix, String paths) throws ServletException(Code)
This method is almost exactly the same as the base class initModuleConfig. The only difference is that it does not throw an UnavailableException if a module configuration file is missing or invalid.



moduleCanHandlePath
protected boolean moduleCanHandlePath(ModuleConfig moduleConfig, RequestProcessor rp, String servletPath)(Code)
Tell whether the given module can handle the given path. By default, this is always true.



process
protected void process(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)
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.



processUnhandledAction
protected boolean processUnhandledAction(HttpServletRequest request, HttpServletResponse response, String uri) throws IOException, ServletException(Code)
Last chance to handle an unhandled action URI. true if this method handled it (by forwarding somewhere or writing to the response).



registerModule
protected synchronized ModuleConfig registerModule(String modulePath, String configFilePath) throws ServletException(Code)
Register a Struts module, initialized by the given configuration file.
Parameters:
  modulePath - the module path, starting at the webapp root, e.g., "/info/help".
Parameters:
  configFilePath - the path, starting at the webapp root, to the module configurationfile (e.g., "/WEB-INF/my-generated-struts-config-info-help.xml"). the Struts ModuleConfig that was initialized.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.