Java Doc for ExpressoActionServlet.java in  » J2EE » Expresso » com » jcorporate » expresso » core » controller » 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 » J2EE » Expresso » com.jcorporate.expresso.core.controller 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.jcorporate.expresso.core.controller.ExpressoActionServlet

All known Subclasses:   com.jcorporate.expresso.services.test.ActionTestServlet,
ExpressoActionServlet
public class ExpressoActionServlet extends ActionServlet implements ControllerFactory(Code)
Title: Expresso Project Description: Copyright: Copyright (c) 2001, 2002, 2003 Company: Jcorporate
author:
   Michael Rimov, Extended by Peter Pilgrim
author:
   Michael Rimov, Peter Pilgrim, Portions created by the Struts development
author:
   team
version:
   2.0
See Also:   ExpressoPlugin
See Also:   ExpressoRequestProcessor


Field Summary
protected  MapmapModuleConfig
    

Constructor Summary
public  ExpressoActionServlet()
    

Method Summary
public  voiddestroy()
    
public synchronized  ControllergetController(String className)
     Struts compatible version of the controller factory.
public synchronized  ControllergetController(String moduleName, String className)
     Struts compatible version of the controller factory.
public  ControllergetController(ControllerRequest request)
     This method is similar to getController(className) except that it may try to route the construction call to the appropriate controlling servlet
Parameters:
  request - The ControllerRequest that has all the parameters weneed to construct the appropriate controller.
public  voidinit()
    
protected  ModuleConfiginitExpressoFromConfigDirectory(String prefix, String paths)
    
protected  voidinitExpressoSubapplication(String prefix, ModuleConfig config, String configPath)
     Initialise Expresso sub application, merge the separate configuration into suppliced Struts config XML, normally default.
protected  ModuleConfiginitModuleConfig(String prefix, String paths)
    

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 the ActionServlet.initModuleConfig method in this class, because we need to keep a record of all the defined modules and their configurations.

protected  voidloadOneConfigFile(Digester digester, InputSource is)
    

Field Detail
mapModuleConfig
protected Map mapModuleConfig(Code)




Constructor Detail
ExpressoActionServlet
public ExpressoActionServlet()(Code)
Default constructor




Method Detail
destroy
public void destroy()(Code)
Remove myself as a controller factory



getController
public synchronized Controller getController(String className) throws ControllerException(Code)
Struts compatible version of the controller factory. Adds the created class to the actions list if it doesn't exist already.
Parameters:
  className - The className of the controller to get/instantiate an instantiated Controller object
throws:
  ControllerException - upon error



getController
public synchronized Controller getController(String moduleName, String className) throws ControllerException(Code)
Struts compatible version of the controller factory. Adds the created class to the actions list if it doesn't exist already.
Parameters:
  moduleName - The Struts 1.1 module name
Parameters:
  className - The className of the controller to get/instantiate an instantiated Controller object
throws:
  ControllerException - upon error



getController
public Controller getController(ControllerRequest request) throws ControllerException(Code)
This method is similar to getController(className) except that it may try to route the construction call to the appropriate controlling servlet
Parameters:
  request - The ControllerRequest that has all the parameters weneed to construct the appropriate controller. an instantiated Controller object
throws:
  ControllerException - if there's an error instantiating thecontroller



init
public void init() throws javax.servlet.ServletException(Code)
Initialization Code
throws:
  ServletException - upon error



initExpressoFromConfigDirectory
protected ModuleConfig initExpressoFromConfigDirectory(String prefix, String paths) throws ServletException(Code)
Initialize the configuration based upon the context ConfigDir parameter typical in the older style Expresso [pre 6 :)]
Parameters:
  prefix - the prefix for the module
Parameters:
  paths - the Module config to add to true if succesfully initialized from config directory, falseotherwize, indicating that the configuration system should continue andtry to load from the classpath.
throws:
  ServletException - upon error



initExpressoSubapplication
protected void initExpressoSubapplication(String prefix, ModuleConfig config, String configPath) throws ServletException(Code)
Initialise Expresso sub application, merge the separate configuration into suppliced Struts config XML, normally default.
Parameters:
  prefix - the sub application prefix
Parameters:
  config - the module configuration
Parameters:
  configPath - the module path to load to
throws:
  ServletException - upon error



initModuleConfig
protected ModuleConfig initModuleConfig(String prefix, String paths) throws ServletException(Code)

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 the ActionServlet.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.


Parameters:
  prefix - Module prefix for this module
Parameters:
  paths - Comma-separated list of context-relative resource path(s)for this modules's configuration resource(s) Constructed Module Config
throws:
  ServletException - if initialization cannot be performed
since:
   Struts 1.1



loadOneConfigFile
protected void loadOneConfigFile(Digester digester, InputSource is) throws ServletException(Code)
Load one configuration file
Parameters:
  digester - the digester to parse
Parameters:
  is - the input source to parse
throws:
  ServletException - upon error



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