com.funambol.mail
Class MIMEFormatter

java.lang.Object
  extended by com.funambol.mail.MIMEFormatter

public class MIMEFormatter
extends java.lang.Object

Provides the functionality to transform a Message object into a string formatted as per RFC 2822/MIME ready to be passed to the transport layer of the email application


Constructor Summary
MIMEFormatter(Message mailmessage)
          Initializes the fields containing a reference to the Message object and to the name of the Folder containing this Message object
 
Method Summary
 java.lang.String toString()
          The values of the fields of the Message object referenced by 'mailmessage' are analyzed to be estracted and formatted into a string in the form foreseen by the RFC 2822/MIME specifications
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MIMEFormatter

public MIMEFormatter(Message mailmessage)
Initializes the fields containing a reference to the Message object and to the name of the Folder containing this Message object

Parameters:
mailmessage - The Message object that has to be formatted into a RFC 2822/MIME string. This is necessary in order to allow a consumer to use the toString() method of this formatter after having instantiated it TODO: check if we really need the folder name
Method Detail

toString

public java.lang.String toString()
The values of the fields of the Message object referenced by 'mailmessage' are analyzed to be estracted and formatted into a string in the form foreseen by the RFC 2822/MIME specifications

Overrides:
toString in class java.lang.Object


Copyright © 2006 Funambol.