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, remove
public POP3MailFolder(MailActivationSpec spec)
spec
- The mail activationprotected Message[] getMessages(Folder folder) throws MessagingException
getMessages
in class MailFolder
folder
- The folderMessagingException
- Thrown if there is an errorprotected Store openStore(Session session) throws NoSuchProviderException
openStore
in class MailFolder
session
- The mail sessionNoSuchProviderException
- Thrown if there is no providerprotected void markMessageSeen(Message message) throws MessagingException
markMessageSeen
in class MailFolder
message
- The messagesMessagingException
- Thrown if there is an errorprotected void closeStore(boolean success, Store store, Folder folder) throws MessagingException
closeStore
in class MailFolder
success
- Check for successful closestore
- The storefolder
- The folderMessagingException
- Thrown if there is an errorCopyright ? 2010 Red Hat Middleware LLC (http://www.jboss.com/)