| 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 | |
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
|
MailContentHandlerDelegate | public MailContentHandlerDelegate(ContentHandler contentHandler)(Code) | | Constructor for the MailContentHandler object
Parameters: contentHandler - Description of Parameter |
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 |
|
|