|
talx x1.0.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objecttalx.model.mail.Outbox
Sentinel class for a message folder. This class wraps a Folder from a store using tal protocol. This class contains methods for finding and moving messages, but does not allow message deletion. This class handles openning the folder in asynchronously, so the main thread can create the folder, go back to processing, and use the store later when it has finished openning.
| Field Summary | |
protected javax.mail.Folder |
folder
The outbox folder. |
static java.lang.String |
INBOX_NAME
|
static java.lang.String |
OUTBOX_NAME
|
static java.lang.String |
TRASH_NAME
|
| Constructor Summary | |
protected |
Outbox(javax.mail.Folder f)
|
| Method Summary | |
javax.mail.internet.MimeMessage |
add(javax.mail.internet.MimeMessage m)
Copies the given message into this outbox. |
void |
addMessageCountListener(javax.mail.event.MessageCountListener l)
|
void |
close()
|
void |
closeStore()
|
boolean |
contains(javax.mail.internet.MimeMessage m)
Returns true if the message is part of the underlying folder. |
javax.mail.internet.MimeMessage[] |
find(javax.mail.search.SearchTerm criteria)
Searches through the folder for the messages matching to criteria. |
javax.mail.internet.MimeMessage[] |
find(javax.mail.search.SearchTerm criteria,
java.util.Comparator ordering)
Searches through the folder for the messages matching to criteria. |
javax.mail.internet.MimeMessage |
find(java.lang.String id)
Searches through the folder for the message with the given ID. |
static Outbox[] |
getBoxSet(Settings settings)
|
javax.mail.internet.MimeMessage |
move(javax.mail.internet.MimeMessage m,
Outbox destination)
Moves the message to the given outbox and removes it from this Outbox. |
void |
removeMessageCountListener(javax.mail.event.MessageCountListener l)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String INBOX_NAME
public static final java.lang.String OUTBOX_NAME
public static final java.lang.String TRASH_NAME
protected javax.mail.Folder folder
| Constructor Detail |
protected Outbox(javax.mail.Folder f)
throws javax.mail.MessagingException
| Method Detail |
public static Outbox[] getBoxSet(Settings settings)
throws javax.mail.MessagingException
javax.mail.MessagingExceptionpublic boolean contains(javax.mail.internet.MimeMessage m)
public javax.mail.internet.MimeMessage move(javax.mail.internet.MimeMessage m,
Outbox destination)
public javax.mail.internet.MimeMessage add(javax.mail.internet.MimeMessage m)
throws javax.mail.MessagingException
javax.mail.MessagingExceptionpublic javax.mail.internet.MimeMessage find(java.lang.String id)
public javax.mail.internet.MimeMessage[] find(javax.mail.search.SearchTerm criteria)
criteria - the SearchTerm specifying which messages to return.
public javax.mail.internet.MimeMessage[] find(javax.mail.search.SearchTerm criteria,
java.util.Comparator ordering)
criteria - the SearchTerm specifying which messages to return.ordering - the Comparator specifying the order of the returned
messages.
public void addMessageCountListener(javax.mail.event.MessageCountListener l)
public void removeMessageCountListener(javax.mail.event.MessageCountListener l)
public void close()
public void closeStore()
public java.lang.String toString()
|
talx x1.0.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.