Java Doc for BaseAction.java in  » Web-Framework » struts-1.3.8 » org » apache » struts » apps » mailreader » actions » 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 » Web Framework » struts 1.3.8 » org.apache.struts.apps.mailreader.actions 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.struts.actions.MappingDispatchAction
   org.apache.struts.apps.mailreader.actions.BaseAction

All known Subclasses:   org.apache.struts.apps.mailreader.actions.LogonAction,  org.apache.struts.apps.mailreader.actions.SubscriptionAction,  org.apache.struts.apps.mailreader.actions.LocaleAction,  org.apache.struts.apps.mailreader.actions.MainMenuAction,  org.apache.struts.apps.mailreader.actions.LogoffAction,  org.apache.struts.apps.mailreader.actions.WelcomeAction,  org.apache.struts.apps.mailreader.actions.RegistrationAction,
BaseAction
abstract public class BaseAction extends MappingDispatchAction (Code)

Base Action for MailReader application.

All the BaseAction helper methods are prefixed with "do" so that they can be easily distinguished from Struts and Servlet API methods. BaseAction subclasses may also have prive "do" helpers of their own.

Methods are kept in alphabetical order, to make them easier to find.


version:
   $Rev: 471754 $ $Date: 2006-11-06 08:55:09 -0600 (Mon, 06 Nov 2006) $


Field Summary
public static  StringPASSWORD
    

Name of password field ["password"].

final public static  StringTASK
    

Name of task field ["task"].

public static  StringUSERNAME
    

Name of username field ["username"].

protected  Loglog
    

The Log instance for this application.



Method Summary
 voiddoCacheUser(HttpServletRequest request, User user)
    

Store User object in client session.

protected  voiddoCancel(HttpSession session, String method, String key)
    

Helper method to log event and cancel transaction.

protected  ActionForwarddoFindFailure(ActionMapping mapping)
    

Return the local or global forward named "failure" or null if there is no such forward.

protected  ActionForwarddoFindLogon(ActionMapping mapping)
    

Return the local or global forward named "logon" or null if there is no such forward.

protected  ActionForwarddoFindSuccess(ActionMapping mapping)
    

Return the mapping labeled "success" or null if there is no such mapping.

protected  StringdoGet(ActionForm form, String property)
    

Helper method to fetch a String property from a DynaActionForm.

protected  SubscriptiondoGetSubscription(HttpSession session)
    

Obtain the cached Subscription object, if any.

protected  SubscriptiondoGetSubscription(HttpServletRequest request)
    

Obtain the cached Subscription object, if any.

 UserdoGetUser(UserDatabase database, String username, String password, ActionMessages errors)
    

Confirm user credentials.

 UserdoGetUser(String username, String password, ActionMessages errors)
    

Confirm user credentials.

protected  UserdoGetUser(HttpSession session)
    

Helper method to obtain User form session (if any).

protected  UserdoGetUser(HttpServletRequest request)
    

Helper method to obtain User form session (if any).

protected  UserDatabasedoGetUserDatabase()
    

Return a reference to the UserDatabase or null if the database is not available.

protected  ActionForwarddoInputForward(ActionMapping mapping, HttpServletRequest request, ActionMessages errors)
    

Save any errors and the transactioonal token, and forward to the InputForard result.

protected  voiddoLogProcess(ActionMapping mapping, String method)
    

Log a "processing" message for an Action.

protected  voiddoSaveToken(HttpServletRequest request)
    

Helper method to log event and save token.

protected  voiddoSaveUser(User user)
    

Persist the User object, including subscriptions, to the database.

protected  booleandoSet(ActionForm form, String property, String value)
    

Helper method to inject a String property into a DynaActionForm.


Field Detail
PASSWORD
public static String PASSWORD(Code)

Name of password field ["password"].




TASK
final public static String TASK(Code)

Name of task field ["task"].




USERNAME
public static String USERNAME(Code)

Name of username field ["username"].




log
protected Log log(Code)

The Log instance for this application.






Method Detail
doCacheUser
void doCacheUser(HttpServletRequest request, User user)(Code)

Store User object in client session. If user object is null, any existing user object is removed.


Parameters:
  request - The request we are processing
Parameters:
  user - The user object returned from the database



doCancel
protected void doCancel(HttpSession session, String method, String key)(Code)

Helper method to log event and cancel transaction.


Parameters:
  session - Our HttpSession
Parameters:
  method - Method being processed
Parameters:
  key - Attrkibute to remove from session, if any



doFindFailure
protected ActionForward doFindFailure(ActionMapping mapping)(Code)

Return the local or global forward named "failure" or null if there is no such forward.


Parameters:
  mapping - Our ActionMapping Return the mapping named "failure" or null if there is no such mapping.



doFindLogon
protected ActionForward doFindLogon(ActionMapping mapping)(Code)

Return the local or global forward named "logon" or null if there is no such forward.


Parameters:
  mapping - Our ActionMapping Return the mapping named "logon" or null if there is no such mapping.



doFindSuccess
protected ActionForward doFindSuccess(ActionMapping mapping)(Code)

Return the mapping labeled "success" or null if there is no such mapping.


Parameters:
  mapping - Our ActionMapping Return the mapping named "success" or null if there is no suchmapping.



doGet
protected String doGet(ActionForm form, String property)(Code)

Helper method to fetch a String property from a DynaActionForm.

Values are returned trimmed of leading and trailing whitespace. Zero-length strings are returned as null.


Parameters:
  form - Our DynaActionForm
Parameters:
  property - The name of the property The value or null if an error occurs



doGetSubscription
protected Subscription doGetSubscription(HttpSession session)(Code)

Obtain the cached Subscription object, if any.


Parameters:
  session - Our HttpSession Cached Subscription object or null



doGetSubscription
protected Subscription doGetSubscription(HttpServletRequest request)(Code)

Obtain the cached Subscription object, if any.


Parameters:
  request - Our HttpServletRequest Cached Subscription object or null



doGetUser
User doGetUser(UserDatabase database, String username, String password, ActionMessages errors) throws ExpiredPasswordException(Code)

Confirm user credentials. Post any errors and return User object (or null).


Parameters:
  database - Database in which to look up the user
Parameters:
  username - Username specified on the logon form
Parameters:
  password - Password specified on the logon form
Parameters:
  errors - ActionMessages queue to passback errors Validated User object or null
throws:
  org.apache.struts.apps.mailreader.dao.ExpiredPasswordException - to be handled by Struts exceptionprocessor via the action-mapping



doGetUser
User doGetUser(String username, String password, ActionMessages errors) throws ExpiredPasswordException(Code)

Confirm user credentials. Post any errors and return User object (or null).


Parameters:
  username - Username specified on the logon form
Parameters:
  password - Password specified on the logon form
Parameters:
  errors - ActionMessages queue to passback errors Validated User object or null
throws:
  org.apache.struts.apps.mailreader.dao.ExpiredPasswordException - to be handled by Struts exceptionprocessor via the action-mapping



doGetUser
protected User doGetUser(HttpSession session)(Code)

Helper method to obtain User form session (if any).


Parameters:
  session - Our HttpSession User object, or null if there is no user.



doGetUser
protected User doGetUser(HttpServletRequest request)(Code)

Helper method to obtain User form session (if any).


Parameters:
  request - Our HttpServletRequest User object, or null if there is no user.



doGetUserDatabase
protected UserDatabase doGetUserDatabase()(Code)

Return a reference to the UserDatabase or null if the database is not available.

a reference to the UserDatabase or null if the database is notavailable



doInputForward
protected ActionForward doInputForward(ActionMapping mapping, HttpServletRequest request, ActionMessages errors)(Code)

Save any errors and the transactioonal token, and forward to the InputForard result.


Parameters:
  mapping - Our ActionMapping
Parameters:
  request - Our HttpServletRequest
Parameters:
  errors - Our ActionMessages collectoin The InputForward for this mappintg



doLogProcess
protected void doLogProcess(ActionMapping mapping, String method)(Code)

Log a "processing" message for an Action.


Parameters:
  mapping - Our ActionMapping
Parameters:
  method - Name of method being processed



doSaveToken
protected void doSaveToken(HttpServletRequest request)(Code)

Helper method to log event and save token.


Parameters:
  request - Our HttpServletRequest



doSaveUser
protected void doSaveUser(User user) throws ServletException(Code)

Persist the User object, including subscriptions, to the database.


Parameters:
  user - Our User object
throws:
  javax.servlet.ServletException - On any error



doSet
protected boolean doSet(ActionForm form, String property, String value)(Code)

Helper method to inject a String property into a DynaActionForm.


Parameters:
  form - Our DynaActionForm
Parameters:
  property - The name of the property
Parameters:
  value - The value for the property True if the assignment succeeds



Methods inherited from org.apache.struts.actions.MappingDispatchAction
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)
protected String getMethodName(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response, String parameter) throws Exception(Code)(Java Doc)
protected String getParameter(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)
protected ActionForward unspecified(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(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.