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

java.lang.Object
  extended by org.jboss.resource.adapter.mail.inflow.MailFolder

public class MailFolder
extends Object

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

Version:
$Revision: 57189 $
Author:
Scott.Stark@jboss.org

Constructor Summary
MailFolder(MailActivationSpec spec)
           
 
Method Summary
 void close()
           
 javax.mail.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 spec)
           throws Exception
Throws:
Exception
Method Detail

open

public void open()
          throws Exception
Throws:
Exception

getNewMessages

public javax.mail.Message[] getNewMessages()
                                    throws Exception
Throws:
Exception

close

public void close()
           throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.