com.funambol.email.items.manager
Class EntityManagerFilter

java.lang.Object
  extended bycom.funambol.email.items.manager.EntityManager
      extended bycom.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
 ItemMessage get_H(javax.mail.Session session, java.lang.String FID, java.lang.String FMID, javax.mail.Message msg, char status, java.util.Locale loc)
          returns only header
 ItemMessage get_HB(javax.mail.Session session, java.lang.String FID, java.lang.String FMID, javax.mail.Message msg, char status, java.util.Locale loc, int numBytes)
          returns header and body with byte quatity limitation
 ItemMessage get_HBA(javax.mail.Session session, java.lang.String FID, java.lang.String FMID, javax.mail.Message msg, char status, java.util.Locale loc, int numBytes)
          if numBytes = -1 it returns all parts of the message (header, body, attachements) without byte quatity limitation.
 java.lang.String getEncodingType(javax.mail.Message msg)
          check if message contains non-ASCII characters and set the ccorrect encoding type
 
Methods inherited from class com.funambol.email.items.manager.EntityManager
createFoundationFolder, createFoundationMail, createMessage, hasMatchedDate, hasMatchedSize, insertCustomFolder, insertDefaultFolder, isEmail, sendEmail, setFlags, 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

get_H

public ItemMessage get_H(javax.mail.Session session,
                         java.lang.String FID,
                         java.lang.String FMID,
                         javax.mail.Message msg,
                         char status,
                         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
status - status of the item; char
loc - Locale
Returns:
ItemMessage
Throws:
EntityException

get_HB

public ItemMessage get_HB(javax.mail.Session session,
                          java.lang.String FID,
                          java.lang.String FMID,
                          javax.mail.Message msg,
                          char status,
                          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
status - status of the item; char
loc - Locale
numBytes - int
Returns:
ItemMessage
Throws:
EntityException

get_HBA

public ItemMessage get_HBA(javax.mail.Session session,
                           java.lang.String FID,
                           java.lang.String FMID,
                           javax.mail.Message msg,
                           char status,
                           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
status - status of the item; char
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.