|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.james.fetchmail.ProcessorAbstract org.apache.james.fetchmail.FolderProcessor
public class FolderProcessor
Class FolderProcessor
opens a Folder and iterates over all
of the Messages, delegating their processing to
MessageProcessor
.
If isRecurse(), all subfolders are fetched recursively.
Creation Date: 25-May-03
Constructor Summary | |
---|---|
protected |
FolderProcessor(javax.mail.Folder folder,
org.apache.james.fetchmail.Account account)
Constructor for FolderProcessor. |
Method Summary | |
---|---|
protected void |
close()
Method close. |
protected java.lang.Boolean |
computeMarkSeenPermanent()
Answer the result of computing markSeenPermanent. |
protected javax.mail.Folder |
getFolder()
Returns the folder. |
protected boolean |
handleMarkSeenNotPermanent(javax.mail.internet.MimeMessage aMessage)
Handler for when the folder does not support the SEEN flag. |
protected java.lang.Boolean |
isMarkSeenPermanent()
Returns the isMarkSeenPermanent. |
protected boolean |
isSeen(javax.mail.internet.MimeMessage aMessage)
Answer if aMessage has been SEEN. |
protected void |
open()
Method open. |
void |
process()
Method process opens a Folder, fetches the Envelopes for all of its Messages, creates a MessageProcessor and runs it to process
each message. |
protected void |
recurse()
Method recurse. |
protected void |
setFolder(javax.mail.Folder folder)
Sets the folder. |
protected void |
setMarkSeenPermanent(java.lang.Boolean markSeenPermanent)
Sets the markSeenPermanent. |
protected void |
updateMarkSeenPermanent()
Updates the markSeenPermanent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected FolderProcessor(javax.mail.Folder folder, org.apache.james.fetchmail.Account account)
folder
- The folder to be fetchedaccount
- The account being processedMethod Detail |
---|
public void process() throws javax.mail.MessagingException
MessageProcessor
and runs it to process
each message.
process
in class ProcessorAbstract
javax.mail.MessagingException
ProcessorAbstract.process()
protected void close() throws javax.mail.MessagingException
javax.mail.MessagingException
protected void recurse() throws javax.mail.MessagingException
javax.mail.MessagingException
protected void open() throws javax.mail.MessagingException
javax.mail.MessagingException
protected javax.mail.Folder getFolder()
protected boolean isSeen(javax.mail.internet.MimeMessage aMessage) throws javax.mail.MessagingException
aMessage
has been SEEN.
aMessage
-
javax.mail.MessagingException
protected java.lang.Boolean computeMarkSeenPermanent()
protected boolean handleMarkSeenNotPermanent(javax.mail.internet.MimeMessage aMessage) throws javax.mail.MessagingException
Handler for when the folder does not support the SEEN flag. The default behaviour implemented here is to answer the value of the SEEN flag anyway.
Subclasses may choose to override this method and implement their own solutions.
aMessage
-
javax.mail.MessagingException
protected void setFolder(javax.mail.Folder folder)
folder
- The folder to setprotected java.lang.Boolean isMarkSeenPermanent()
protected void setMarkSeenPermanent(java.lang.Boolean markSeenPermanent)
markSeenPermanent
- The isMarkSeenPermanent to setprotected void updateMarkSeenPermanent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |