org.jboss.resource.adapter.mail.inflow
Class MailFolder

java.lang.Object
  extended byorg.jboss.resource.adapter.mail.inflow.MailFolder

public class MailFolder
extends java.lang.Object

An encapsulation of a mail store folder used by the MailActivation.run to poll and retrieve new messages.


Constructor Summary
MailFolder(MailActivationSpec (src)  spec)
           
 
Method Summary
 void close()
           
 Message[] getNewMessages()
           
 void open()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailFolder

public MailFolder(MailActivationSpec (src)  spec)
           throws java.lang.Exception
Method Detail

open

public void open()
          throws java.lang.Exception
Throws:
java.lang.Exception

getNewMessages

public Message[] getNewMessages()
                         throws java.lang.Exception
Throws:
java.lang.Exception

close

public void close()
           throws MessagingException
Throws:
MessagingException