Java Doc for MailContentHandlerDelegate.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.mail.MailContentHandlerDelegate

MailContentHandlerDelegate
public class MailContentHandlerDelegate extends AbstractLogEnabled (Code)
Marshal javamail objects

Having one or more javamail objects, like Message, Folder, et al. emit SAX events


author:
   Bernhard Huber
since:
   24 October 2002
version:
   $Id: MailContentHandlerDelegate.java 468424 2006-10-27 15:44:53Z vgritsenko $

Inner Class :static class FolderXMLizer extends AbstractLogEnabled implements XMLizable
Inner Class :static class MessageEnvelopeXMLizer extends AbstractLogEnabled implements XMLizable
Inner Class :static class MessageXMLizer extends AbstractLogEnabled implements XMLizable

Field Summary
final public static  StringPREFIX
    
final public static  StringURI
    

Constructor Summary
public  MailContentHandlerDelegate(ContentHandler contentHandler)
    

Method Summary
protected  voidcontentToSAX(ContentHandler contentHandler, Part part)
    
protected  voidemitAddress(String nodeName, Address address)
    
protected  voidemitDate(String nodeName, Date d)
    
public  voidendDocument()
    
protected  voidendDocumentInternal(boolean emitEndDocument)
    
public  voidendDocumentXMLizer()
    
protected  voidfolderToSAX(ContentHandler contentHandler, Folder folder)
    
public  SimpleDateFormatgetSimpleDateFormat()
    
public  voidmarshalFolderToSAX(Folder folder)
    
public  voidmarshalFolderToSAX(Folder[] folders)
    
public  voidmarshalMessageEnvelopeToSAX(Message message)
    
public  voidmarshalMessageToSAX(Message message)
    
public  voidmarshalPartToSAX(Part part)
    
protected  voidmessageEnvelopeToSAX(ContentHandler contentHandler, Message message)
    
protected  voidpartToSAX(ContentHandler contentHandler, Part part, int i)
    
public  voidsetSimpleDateFormat(SimpleDateFormat sdf)
    
public  voidstartDocument()
    
protected  voidstartDocumentInternal(boolean emitStartDocument)
    
public  voidstartDocumentXMLizer()
    

Field Detail
PREFIX
final public static String PREFIX(Code)
PREFIX of the generated XML elements



URI
final public static String URI(Code)
URI of the generated XML elements




Constructor Detail
MailContentHandlerDelegate
public MailContentHandlerDelegate(ContentHandler contentHandler)(Code)
Constructor for the MailContentHandler object
Parameters:
  contentHandler - Description of Parameter




Method Detail
contentToSAX
protected void contentToSAX(ContentHandler contentHandler, Part part) throws MessagingException, IOException, SAXException(Code)
Emit content of message part as sequence of SAX events
Parameters:
  contentHandler - specifies sink of SAX events
Parameters:
  part - emit this part as sequence of SAX events
exception:
  SAXException - thrown iff generating SAX events fails
exception:
  MessagingException - thrown iff accessing javamail data fails
exception:
  IOException - thrown iff accessing content fails



emitAddress
protected void emitAddress(String nodeName, Address address) throws SAXException(Code)
Helper method emitting SAX events representing an internet address
Parameters:
  nodeName - emitted element node name
Parameters:
  address - emitted address data
exception:
  SAXException - thrown iff generating SAX events fails



emitDate
protected void emitDate(String nodeName, Date d) throws SAXException(Code)
Helper method emitting SAX events representing a date
Parameters:
  nodeName - emitted element node name
Parameters:
  d - Description of the Parameter
exception:
  SAXException - thrown iff generating SAX events fails



endDocument
public void endDocument() throws SAXException(Code)
Emit starting SAX events sequence, including SAX endDocument event
exception:
  SAXException - thrown iff generating SAX events fails



endDocumentInternal
protected void endDocumentInternal(boolean emitEndDocument) throws SAXException(Code)
Emit end document sequence
Parameters:
  emitEndDocument - flag controlling invocation of SAX endDocument
exception:
  SAXException - thrown iff generating SAX events fails



endDocumentXMLizer
public void endDocumentXMLizer() throws SAXException(Code)
Emit starting SAX events sequence, excluding SAX endDocument event
exception:
  SAXException - thrown iff generating SAX events fails



folderToSAX
protected void folderToSAX(ContentHandler contentHandler, Folder folder) throws MessagingException, SAXException(Code)
Emit folder as sequence of SAX events
Parameters:
  folder - emit this folder
Parameters:
  contentHandler - specifies sink of SAX events
exception:
  MessagingException - thrown iff accessing javamail data fails
exception:
  SAXException - thrown iff generating SAX events fails



getSimpleDateFormat
public SimpleDateFormat getSimpleDateFormat()(Code)
Gets the simpleDateFormat attribute of the MailContentHandlerDelegate object The simpleDateFormat value



marshalFolderToSAX
public void marshalFolderToSAX(Folder folder)(Code)
Emit a folder as a sequence of SAX events
Parameters:
  folder - emit this folder



marshalFolderToSAX
public void marshalFolderToSAX(Folder[] folders)(Code)
Emit folders as a sequence of SAX events
Parameters:
  folders - emit these folders



marshalMessageEnvelopeToSAX
public void marshalMessageEnvelopeToSAX(Message message)(Code)
Emit a message envelope as a sequence of SAX events
Parameters:
  message - emit envelope of this message



marshalMessageToSAX
public void marshalMessageToSAX(Message message)(Code)
Emit a message envelope, and message content as a sequence of SAX events
Parameters:
  message - emit envelope, and content of this message



marshalPartToSAX
public void marshalPartToSAX(Part part)(Code)
Emit a message content as a sequence of SAX events
Parameters:
  part - Description of the Parameter



messageEnvelopeToSAX
protected void messageEnvelopeToSAX(ContentHandler contentHandler, Message message) throws MessagingException, SAXException(Code)
Emit message envelope as sequence of SAX events
Parameters:
  message - emit envelope of this message
Parameters:
  contentHandler - specifies sink of SAX events
exception:
  MessagingException - thrown iff accessing javamail data fails
exception:
  SAXException - thrown iff generating SAX events fails



partToSAX
protected void partToSAX(ContentHandler contentHandler, Part part, int i) throws MessagingException, IOException, SAXException(Code)
Emit part as sequence of SAX events
Parameters:
  part - Description of the Parameter
Parameters:
  contentHandler - specifies sink of SAX events
Parameters:
  i - Description of the Parameter
exception:
  MessagingException - thrown iff accessing javamail data fails
exception:
  IOException - thrown iff accessing content fails
exception:
  SAXException - thrown iff generating SAX events fails



setSimpleDateFormat
public void setSimpleDateFormat(SimpleDateFormat sdf)(Code)
Sets the simpleDateFormatter attribute of the MailContentHandlerDelegate object
Parameters:
  sdf - The new simpleDateFormat value



startDocument
public void startDocument() throws SAXException(Code)
Emit starting SAX events sequence, including SAX startDocument event
exception:
  SAXException - thrown iff generating SAX events fails



startDocumentInternal
protected void startDocumentInternal(boolean emitStartDocument) throws SAXException(Code)
Emit start document sequence
Parameters:
  emitStartDocument - flag controlling invocation of SAX startDocument
exception:
  SAXException - thrown iff generating SAX events fails



startDocumentXMLizer
public void startDocumentXMLizer() throws SAXException(Code)
Emit starting SAX events sequence, excluding SAX startDocument event
exception:
  SAXException - thrown iff generating SAX events fails



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