public class POP3MailFolder extends MailFolder
| Constructor and Description |
|---|
POP3MailFolder(MailActivationSpec spec)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeStore(boolean success,
Store store,
Folder folder)
Close a store
|
protected Message[] |
getMessages(Folder folder)
Get the messages from a folder
|
protected void |
markMessageSeen(Message message)
Mark a message as seen
|
protected Store |
openStore(Session session)
Open a store
|
close, close, getInstance, hasNext, next, open, removepublic POP3MailFolder(MailActivationSpec spec)
spec - The mail activationprotected Message[] getMessages(Folder folder)
throws MessagingException
getMessages in class MailFolderfolder - The folderMessagingException - Thrown if there is an errorprotected Store openStore(Session session)
throws NoSuchProviderException
openStore in class MailFoldersession - The mail sessionNoSuchProviderException - Thrown if there is no providerprotected void markMessageSeen(Message message)
throws MessagingException
markMessageSeen in class MailFoldermessage - The messagesMessagingException - Thrown if there is an errorprotected void closeStore(boolean success,
Store store,
Folder folder)
throws MessagingException
closeStore in class MailFoldersuccess - Check for successful closestore - The storefolder - The folderMessagingException - Thrown if there is an errorCopyright ? 2010 Red Hat Middleware LLC (http://www.jboss.com/)