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


Constructor Summary
MessageParser()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Returns:
list of email parts ArrayList


Copyright © 2005-2006 Funambol.