| |
|
| java.lang.Object org.apache.james.fetchmail.ProcessorAbstract org.apache.james.fetchmail.FolderProcessor
FolderProcessor | public class FolderProcessor extends ProcessorAbstract (Code) | | 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(Folder folder, Account account) Constructor for FolderProcessor. |
Method Summary | |
protected void | close() Method close. | protected Boolean | computeMarkSeenPermanent() Answer the result of computing markSeenPermanent. | protected Folder | getFolder() Returns the folder. | protected boolean | handleMarkSeenNotPermanent(MimeMessage aMessage) Handler for when the folder does not support the SEEN flag. | protected Boolean | isMarkSeenPermanent() Returns the isMarkSeenPermanent. | protected boolean | isSeen(MimeMessage aMessage) Answer if aMessage has been SEEN. | protected void | open() Method open. | public 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(Folder folder) Sets the folder. | protected void | setMarkSeenPermanent(Boolean markSeenPermanent) Sets the markSeenPermanent. | protected void | updateMarkSeenPermanent() Updates the markSeenPermanent. |
FolderProcessor | protected FolderProcessor(Folder folder, Account account)(Code) | | Constructor for FolderProcessor.
Parameters: folder - The folder to be fetched Parameters: account - The account being processed |
close | protected void close() throws MessagingException(Code) | | Method close.
throws: MessagingException - |
computeMarkSeenPermanent | protected Boolean computeMarkSeenPermanent()(Code) | | Answer the result of computing markSeenPermanent.
Boolean |
getFolder | protected Folder getFolder()(Code) | | Returns the folder.
Folder |
handleMarkSeenNotPermanent | protected boolean handleMarkSeenNotPermanent(MimeMessage aMessage) throws MessagingException(Code) | | 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.
Parameters: aMessage - boolean throws: MessagingException - |
isMarkSeenPermanent | protected Boolean isMarkSeenPermanent()(Code) | | Returns the isMarkSeenPermanent.
Boolean |
isSeen | protected boolean isSeen(MimeMessage aMessage) throws MessagingException(Code) | | Answer if aMessage has been SEEN.
Parameters: aMessage - boolean throws: MessagingException - |
open | protected void open() throws MessagingException(Code) | | Method open.
throws: MessagingException - |
recurse | protected void recurse() throws MessagingException(Code) | | Method recurse.
throws: MessagingException - |
setFolder | protected void setFolder(Folder folder)(Code) | | Sets the folder.
Parameters: folder - The folder to set |
setMarkSeenPermanent | protected void setMarkSeenPermanent(Boolean markSeenPermanent)(Code) | | Sets the markSeenPermanent.
Parameters: markSeenPermanent - The isMarkSeenPermanent to set |
updateMarkSeenPermanent | protected void updateMarkSeenPermanent()(Code) | | Updates the markSeenPermanent.
|
|
|
|