Java Doc for MaskRequestProcessorImplementation.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) 


java.lang.Object
   com.ivata.mask.web.struts.MaskRequestProcessorImplementation

MaskRequestProcessorImplementation
public class MaskRequestProcessorImplementation (Code)

Mask request processor implementation - kept separate so we can share functionality between the regular ( com.ivata.mask.web.struts.MaskRequestProcessor ) and tiles ( com.ivata.mask.web.struts.MaskTilesRequestProcessor ) versions.


since:
   ivata masks 0.4 (2004-12-23)
author:
   Colin MacLeod
author:
   colin.macleod@ivata.com
version:
   $Revision: 1.13 $



Constructor Summary
public  MaskRequestProcessorImplementation(MaskFactory maskFactoryParam, PersistenceManager persistenceManagerParam, FieldValueConvertorFactory fieldValueConvertorFactoryParam, SessionManager sessionManagerParam)
    

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


Method Summary
protected  ActioncreateAction(String className, HttpServletRequest request, HttpServletResponse response, ActionMapping mapping, ActionServlet servlet, Map actionsParam)
    

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.

public  ClientSessioncreateClientSession(HttpServletRequest request, ServletContext servletContext)
     Retrieve the client session from the request (if there), or create a new client session.
Parameters:
  request - Current servlet request we are processing.
Parameters:
  servletContext - Current servlet context of the servlet processingthis action.
public  FieldValueConvertorFactorygetFieldValueConvertorFactory()
     Used to generate convertors to convert property types from strings.
public  ActionFormgetSavedForm(HttpServletRequest request, ActionMapping mapping)
     Restore a form from the scope it was saved in.
Parameters:
  request - Current servlet request we are processing.
Parameters:
  mapping - Struts mapping.
public  voidinit(ActionServlet servletParam, ModuleConfig moduleConfigParam)
    
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.

public  voidsaveForm(HttpServletRequest request, ActionMapping mapping, ActionForm form)
     Save a form back to the appropriate scope, after it has been successfully processed.
protected  voidsetValueObject(HttpServletRequest request, ValueObject valueObject, Field field, Class propertyType, String id)
    

Set an individual value object.



Constructor Detail
MaskRequestProcessorImplementation
public MaskRequestProcessorImplementation(MaskFactory maskFactoryParam, PersistenceManager persistenceManagerParam, FieldValueConvertorFactory fieldValueConvertorFactoryParam, SessionManager sessionManagerParam)(Code)

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


Parameters:
  maskFactoryParam - needed to access the masks and groups of masks.
Parameters:
  persistenceManagerParam - used to locate the value objects by their shared base class.
Parameters:
  fieldValueConvertorFactoryParam - Used to generate convertors, usedto set field values from string request parameters.
Parameters:
  sessionManagerParam - This session manager is used to marshall and unmarshall client sessions.




Method Detail
createAction
protected Action createAction(String className, HttpServletRequest request, HttpServletResponse response, ActionMapping mapping, ActionServlet servlet, Map actionsParam) throws IOException, SystemException(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.
Parameters:
  servlet - current servlet which is processing the action.
Parameters:
  actionsParam - Map of all existing system actions, keyed by classname. 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.
throws:
  SystemException - can be thrown by overridden methods, if theaction 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 definingthe form 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 form canand should be created using the default Struts framework.
throws:
  SystemException - if the form cannot be created for any reason.



createClientSession
public ClientSession createClientSession(HttpServletRequest request, ServletContext servletContext) throws MarshallingException(Code)
Retrieve the client session from the request (if there), or create a new client session.
Parameters:
  request - Current servlet request we are processing.
Parameters:
  servletContext - Current servlet context of the servlet processingthis action. Valid client session object.
throws:
  MarshallingException - Thrown by the client session manager.



getFieldValueConvertorFactory
public FieldValueConvertorFactory getFieldValueConvertorFactory()(Code)
Used to generate convertors to convert property types from strings. Returns the FieldValueConvertor factory.



getSavedForm
public ActionForm getSavedForm(HttpServletRequest request, ActionMapping mapping)(Code)
Restore a form from the scope it was saved in.
Parameters:
  request - Current servlet request we are processing.
Parameters:
  mapping - Struts mapping. The saved form, or null if no saved form isavailable.



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

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



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 -



saveForm
public void saveForm(HttpServletRequest request, ActionMapping mapping, ActionForm form)(Code)
Save a form back to the appropriate scope, after it has been successfully processed.
Parameters:
  request - Current servlet request we are processing.
Parameters:
  mapping - Struts mapping.
Parameters:
  form - Form to be saved.



setValueObject
protected void setValueObject(HttpServletRequest request, ValueObject valueObject, Field field, Class propertyType, String id) throws ServletException(Code)

Set an individual value object.


Parameters:
  request - Current request we are processing.
Parameters:
  valueObject - value object containing the value object to be set.Note this is the container, not the 'property' value object.
Parameters:
  field - field definition of this value object.
Parameters:
  propertyType - class of value object.
Parameters:
  id - value object unique identifier.
throws:
  ServletException - if the value object cannot be set for anyreason.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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