com.funambol.email.items.manager
Class MessageParser

java.lang.Object
  extended by com.funambol.email.items.manager.MessageParser

public class MessageParser
extends java.lang.Object

This class is used in order to create a list of the Part of the single email. in the list there will be InternalPart items. this class is an helper for the EntityManagerFilter class


Field Summary
protected static com.funambol.framework.logging.FunambolLogger log
           
 
Constructor Summary
MessageParser()
           
 
Method Summary
static java.util.ArrayList getAllPartsOfMessage(javax.mail.Message msg)
          this method returns always a list of part
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static com.funambol.framework.logging.FunambolLogger log
Constructor Detail

MessageParser

public MessageParser()
Method Detail

getAllPartsOfMessage

public static java.util.ArrayList getAllPartsOfMessage(javax.mail.Message msg)
this method returns always a list of part

if the javaMail fails to get the main content the method returns a default InternalPart with the "CONTENT_BODY_ALERT" as the body value.

if the javaMail fails to get the single parts of the email the method check if it can return some parts. if no parts is taken the method return a default InternalPart with the "CONTENT_BODY_ALERT" as the body value.

Parameters:
msg - Message
list - of email parts ArrayList


Copyright © 2005-2006 Funambol.