|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.mail.MailFetcher
public class MailFetcher
The MailFetcher is used for communication between JCMS, MailServer and Mail Account.
Field Summary | |
---|---|
static String |
ALARM_MAIL_FETCHER
|
static String |
CONTEXT_MAILFETCHER
|
static String |
REVISION
|
Constructor Summary | |
---|---|
protected |
MailFetcher()
|
Method Summary | |
---|---|
void |
addArchiveMailPattern(String pattern,
ArchiveMailListener.ArchiveMailCriteria criteria)
|
void |
addMailListener(MailListener ml)
|
protected Collection<MailMessage.Part> |
decodeMultipart(javax.mail.Message msg)
|
void |
fetch(MailAccount account)
Fetch given MailAccount and Fire MailMessage to listeners. |
protected void |
fireFetchMessage(MailAccount account,
MailMessage mail)
|
ArchiveMailListener |
getArchiveMailListener()
|
MailAccount |
getLastFetchAccount()
Returns the latest Mail Account fetched |
Map<String,MailAccount> |
getMailAccountMap()
Retrieve MailAccount list from properties |
static String |
getMessageIdQuietly(javax.mail.Message msg)
Returns the messageId for the given message. |
void |
handleAlarm(AlarmEntry entry)
Invoked when an alarm is triggered. |
void |
propertiesChange(JProperties properties)
Invoked after properties have been modified in JCMS and save on disk. |
void |
removeArchiveMailPattern(String pattern)
|
void |
removeMailListener(MailListener ml)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
public static final String ALARM_MAIL_FETCHER
public static final String CONTEXT_MAILFETCHER
Constructor Detail |
---|
protected MailFetcher()
Method Detail |
---|
public void handleAlarm(AlarmEntry entry)
AlarmListener
handleAlarm
in interface AlarmListener
entry
- the AlarmEntry which has been triggered.public void propertiesChange(JProperties properties)
JPropertiesListener
You cannot alter the value received in parameters.
propertiesChange
in interface JPropertiesListener
properties
- the properties which have been modified (may not contain all JCMS properties)public MailAccount getLastFetchAccount()
public Map<String,MailAccount> getMailAccountMap()
public void addMailListener(MailListener ml)
public void removeMailListener(MailListener ml)
protected void fireFetchMessage(MailAccount account, MailMessage mail)
public ArchiveMailListener getArchiveMailListener()
public void addArchiveMailPattern(String pattern, ArchiveMailListener.ArchiveMailCriteria criteria)
public void removeArchiveMailPattern(String pattern)
public static String getMessageIdQuietly(javax.mail.Message msg)
msg
- the javax.mail.Message
public void fetch(MailAccount account)
account
- the mailAccount to Fetchprotected Collection<MailMessage.Part> decodeMultipart(javax.mail.Message msg) throws javax.mail.MessagingException, IOException
javax.mail.MessagingException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |