Java Doc for MaskRequestProcessor.java in  » Development » ivatamasks » com » ivata » mask » web » struts » 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 » Development » ivatamasks » com.ivata.mask.web.struts 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.ivata.mask.web.struts.MaskRequestProcessor

MaskRequestProcessor
public class MaskRequestProcessor extends RequestProcessor (Code)

Extend from this class if you _don't_ want to use Struts Tiles .


since:
   ivata masks 0.3 (2004-05-11)
author:
   Colin MacLeod
author:
   colin.macleod@ivata.com
version:
   $Revision: 1.16 $



Constructor Summary
public  MaskRequestProcessor(MaskFactory maskFactory, PersistenceManager persistenceManager)
    

Initializes the mask factory, the value object locator and the the standard field value converters.


Method Summary
protected  ActioncreateAction(String className, HttpServletRequest request, HttpServletResponse response, ActionMapping mapping)
    

Override this method to define how to create actions in your environment. This lets you use ivata masks with a standard framework.

The default implementation looks for the action classes it knows about and initializes them directly.

protected  ActionFormcreateActionForm(FormBeanConfig formBeanConfig, HttpServletRequest request, HttpServletResponse response, ActionMapping mapping)
    

Override this method to define how to create action forms in your environment.

protected  MaskRequestProcessorImplementationgetImplementation()
     Get the actual mask request processor which does all the hard work.
public  voidinit(ActionServlet servletParam, ModuleConfig moduleConfigParam)
    
protected  ActionprocessActionCreate(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping)
    

Overridden to create actions, since our actions have custom constructor parameters.

final protected  ActionFormprocessActionForm(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping)
    

Overridden to create forms, since our forms have custom constructor parameters.

protected  voidprocessPopulate(HttpServletRequest request, HttpServletResponse response, ActionForm form, ActionMapping mapping)
    

Overridden to populate forms, and convert the string values of value object properties into the correct form for their class.

protected  voidsetImplementation(MaskRequestProcessorImplementation implementationParam)
    


Constructor Detail
MaskRequestProcessor
public MaskRequestProcessor(MaskFactory maskFactory, PersistenceManager persistenceManager)(Code)

Initializes the mask factory, the value object locator and the the standard field value converters.


Parameters:
  maskFactory - needed to access the masks and groups of masks.
Parameters:
  persistenceManager - used to locate the value objects by their shared base class.




Method Detail
createAction
protected Action createAction(String className, HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) throws IOException(Code)

Override this method to define how to create actions in your environment. This lets you use ivata masks with a standard framework.

The default implementation looks for the action classes it knows about and initializes them directly. This is a simple starting point; in real life it is better to use a standard framework such as picocontainer .


Parameters:
  className - full path and name of the action class to be created.
Parameters:
  request - request for which we are creating an action.
Parameters:
  response - response we are sending.
Parameters:
  mapping - Struts mapping. valid action for the path, or null if the actioncan and should be created using the default Struts framework.
throws:
  IOException - if the action cannot be created.



createActionForm
protected ActionForm createActionForm(FormBeanConfig formBeanConfig, HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) throws SystemException(Code)

Override this method to define how to create action forms in your environment. This lets you use ivata masks with a standard framework.

The default implementation looks for the form classes it knows about and initializes them directly. This is a simple starting point; in real life it is better to use a standard framework such as picocontainer .


Parameters:
  formBeanConfig - instance of FormBeanConfig defining the form tobe created.
Parameters:
  request - request for which we are creating an action.
Parameters:
  response - response we are sending.
Parameters:
  mapping - Struts mapping. valid action for the path, or null if the form canand should be created using the default Struts framework.
throws:
  SystemException - if the form cannot be created for any reason.



getImplementation
protected MaskRequestProcessorImplementation getImplementation()(Code)
Get the actual mask request processor which does all the hard work. The functionality for this class is split off into this processor, so we can extend both the Tiles and standard versions of Struts processor classes with the same functional extensions. mask processor implementation.



init
public void init(ActionServlet servletParam, ModuleConfig moduleConfigParam) throws ServletException(Code)

Parameters:
  servletParam -
Parameters:
  moduleConfigParam -
throws:
  javax.servlet.ServletException -



processActionCreate
protected Action processActionCreate(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) throws IOException(Code)

Overridden to create actions, since our actions have custom constructor parameters. Don't try to override this method: override MaskRequestProcessor.createAction createAction instead.


Parameters:
  request -
Parameters:
  response -
Parameters:
  mapping - valid action for the path.
throws:
  IOException -



processActionForm
final protected ActionForm processActionForm(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping)(Code)

Overridden to create forms, since our forms have custom constructor parameters. Don't try to override this method: override MaskRequestProcessor.createActionForm createActionForm instead.


Parameters:
  request -
Parameters:
  response -
Parameters:
  mapping -



processPopulate
protected void processPopulate(HttpServletRequest request, HttpServletResponse response, ActionForm form, ActionMapping mapping) throws ServletException(Code)

Overridden to populate forms, and convert the string values of value object properties into the correct form for their class.


Parameters:
  request -
Parameters:
  response -
Parameters:
  form -
Parameters:
  mapping -
exception:
  ServletException -



setImplementation
protected void setImplementation(MaskRequestProcessorImplementation implementationParam)(Code)
Refer to MaskRequestProcessor.getImplementation .
Parameters:
  implementationParam - Refer to MaskRequestProcessor.getImplementation.



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