Java Doc for MailAction.java in  » Content-Management-System » apache-lenya-2.0 » org » apache » cocoon » mail » 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 » Content Management System » apache lenya 2.0 » org.apache.cocoon.mail 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.cocoon.acting.ServiceableAction
   org.apache.cocoon.mail.MailAction

MailAction
public class MailAction extends ServiceableAction implements ThreadSafe(Code)
This action creates javamail objects, and puts XMLizable object wrappers of these objects into the request attribute map.

This action enables javamail access as action. It creates an http sesion, and puts the MailContext object into the session attributes.


See Also:   MailContext
author:
   Bernhard Huber
version:
   $Id: MailAction.java 468424 2006-10-27 15:44:53Z vgritsenko $
since:
   Cocoon 2.1, 16 December 2002


Field Summary
final public static  StringREQUEST_ATTRIBUTE_FOLDER
    
final public static  StringREQUEST_ATTRIBUTE_FOLDERS
    
final public static  StringREQUEST_ATTRIBUTE_MESSAGE
    
final public static  StringREQUEST_ATTRIBUTE_MESSAGES
    


Method Summary
public  Mapact(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters par)
     Execute mail commands.
protected  voidcheckProviders(javax.mail.Session session)
    
protected  Stringfilter(String tokenStart, String tokenEnd, String s, Properties tokens)
     Replace occurences of TOKEN_STARTxxxTOKEN_END by value of entry xxx in tokens table.
protected  StringgetURLNameExpanded(String storeURLNameTemplate, String userid, String password)
    
protected  voidpopulateRequestAttribute(Request request, MailContext mailContext)
     Populate request attribute map.
protected  voidputXMLizerToRequestAttribute(Request request, Iterator resultIterator)
    
protected  ListretrieveJavaMailObjects(MailContext mailContext)
    

Field Detail
REQUEST_ATTRIBUTE_FOLDER
final public static String REQUEST_ATTRIBUTE_FOLDER(Code)
Request attribute name of a XMLizable folder



REQUEST_ATTRIBUTE_FOLDERS
final public static String REQUEST_ATTRIBUTE_FOLDERS(Code)
Request attribute name of a XMLizable folders object



REQUEST_ATTRIBUTE_MESSAGE
final public static String REQUEST_ATTRIBUTE_MESSAGE(Code)
Request attribute name of a XMLizable message object



REQUEST_ATTRIBUTE_MESSAGES
final public static String REQUEST_ATTRIBUTE_MESSAGES(Code)
Request attribute name of a XMLizable messages object





Method Detail
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters par) throws Exception(Code)
Execute mail commands.
Parameters:
  redirector - Cocoon's redirector
Parameters:
  resolver - Cocoon's source resolver, used for testing if a source is resolvable
Parameters:
  source - the source, e.g.: index.html
Parameters:
  objectModel - Description of the Parameter
Parameters:
  par - Description of the Parameter
exception:
  Exception - Description of the Exception



checkProviders
protected void checkProviders(javax.mail.Session session)(Code)
Check that the provider need is available
Parameters:
  session - The javamail Session used for checking its providers.



filter
protected String filter(String tokenStart, String tokenEnd, String s, Properties tokens)(Code)
Replace occurences of TOKEN_STARTxxxTOKEN_END by value of entry xxx in tokens table.
Parameters:
  tokenStart - token start marker
Parameters:
  tokenEnd - token end marker
Parameters:
  s - the string examined
Parameters:
  tokens - Description of the Parameter String replaced all tokenized entries of original String s.



getURLNameExpanded
protected String getURLNameExpanded(String storeURLNameTemplate, String userid, String password)(Code)
Gets the uRLNameExpanded attribute of the MailGenerator object
Parameters:
  storeURLNameTemplate - Description of the Parameter
Parameters:
  userid - Description of the Parameter
Parameters:
  password - Description of the Parameter The uRLNameExpanded value



populateRequestAttribute
protected void populateRequestAttribute(Request request, MailContext mailContext) throws Exception(Code)
Populate request attribute map.

Execute mail command, and populate request attribute map with XMLizable javamail objects, created by the mail command


Parameters:
  request - triggering the creation of javamail objects
Parameters:
  mailContext - javamail context, store, session, folders
exception:
  Exception - Description of the Exception



putXMLizerToRequestAttribute
protected void putXMLizerToRequestAttribute(Request request, Iterator resultIterator)(Code)
Put XMLizable javamail objects into request attribute map
Parameters:
  request - holding the destination attribute map
Parameters:
  resultIterator - Iterator of



retrieveJavaMailObjects
protected List retrieveJavaMailObjects(MailContext mailContext) throws ProcessingException(Code)
Retrieve javamail objects
Parameters:
  mailContext - Description of the Parameter List of retrieved javamail objects
exception:
  ProcessingException - thrown iff retrieval fails



Fields inherited from org.apache.cocoon.acting.ServiceableAction
protected ServiceManager manager(Code)(Java Doc)

Methods inherited from org.apache.cocoon.acting.ServiceableAction
public void service(ServiceManager manager) throws ServiceException(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.