com.funambol.email.items.manager
Class EntityManagerFilter

java.lang.Object
  extended by com.funambol.email.items.manager.EntityManager
      extended by com.funambol.email.items.manager.EntityManagerFilter
Direct Known Subclasses:
PopEntityManager

public class EntityManagerFilter
extends EntityManager

Filter class.


Field Summary
 
Fields inherited from class com.funambol.email.items.manager.EntityManager
cmsw, ed, log, timeStart, timeStop
 
Constructor Summary
EntityManagerFilter()
           
 
Method Summary
 java.lang.String getEncodingType(javax.mail.Message msg)
          check if message contains non-ASCII characters and set the ccorrect encoding type
 ItemMessage getPart_H(javax.mail.Session session, java.lang.String FID, java.lang.String FMID, javax.mail.Message msg, java.util.Locale loc)
          returns only header
 ItemMessage getPart_HB(javax.mail.Session session, java.lang.String FID, java.lang.String FMID, javax.mail.Message msg, java.util.Locale loc, int numBytes)
          returns header and body with byte quatity limitation
 ItemMessage getPart_HBA(javax.mail.Session session, java.lang.String FID, java.lang.String FMID, javax.mail.Message msg, java.util.Locale loc, int numBytes)
          if numBytes = -1 it returns all parts of the message (header, body, attachements) without byte quatity limitation.
 
Methods inherited from class com.funambol.email.items.manager.EntityManager
createFoundationFolder, createFoundationMail, createMessage, insertCustomFolder, insertDefaultFolder, isEmail, moveSentItem, removeImapOutboxItem, removePopOutboxItem, sendItem, setItemFolder, setItemMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityManagerFilter

public EntityManagerFilter()
Method Detail

getPart_H

public ItemMessage getPart_H(javax.mail.Session session,
                             java.lang.String FID,
                             java.lang.String FMID,
                             javax.mail.Message msg,
                             java.util.Locale loc)
                      throws EntityException
returns only header

Parameters:
session - opened mail server session
FID - parent folder id
FMID - mail id in the folder
msg - Message
loc - Locale
Returns:
ItemMessage
Throws:
EntityException

getPart_HB

public ItemMessage getPart_HB(javax.mail.Session session,
                              java.lang.String FID,
                              java.lang.String FMID,
                              javax.mail.Message msg,
                              java.util.Locale loc,
                              int numBytes)
                       throws EntityException
returns header and body with byte quatity limitation

Parameters:
session - opened mail server session
FID - parent folder id
FMID - mail id in the folder
msg - Message
loc - Locale
numBytes - int
Returns:
ItemMessage
Throws:
EntityException

getPart_HBA

public ItemMessage getPart_HBA(javax.mail.Session session,
                               java.lang.String FID,
                               java.lang.String FMID,
                               javax.mail.Message msg,
                               java.util.Locale loc,
                               int numBytes)
                        throws EntityException
if numBytes = -1 it returns all parts of the message (header, body, attachements) without byte quatity limitation. otherwise it returns all parts of the message (header, body, attachements) but there is the byte number limitation

Parameters:
session - opened mail server session
FID - parent folder id
FMID - mail id in the folder
msg - Message
loc - Locale
numBytes - int
Returns:
ItemMessage
Throws:
EntityException

getEncodingType

public java.lang.String getEncodingType(javax.mail.Message msg)
                                 throws EntityException
check if message contains non-ASCII characters and set the ccorrect encoding type

Parameters:
msg - Message
Returns:
encodingType String
Throws:
EntityException


Copyright © 2003-2006 Funambol.