org.apache.james.test.mock.james
Class MockMailRepository

java.lang.Object
  extended by org.apache.james.test.mock.james.MockMailRepository

public class MockMailRepository
extends java.lang.Object


Constructor Summary
MockMailRepository()
           
 
Method Summary
 java.util.Iterator list()
           
 boolean lock(java.lang.String key)
           
 void remove(Mail mail)
           
 Mail retrieve(java.lang.String key)
           
 void store(Mail mc)
           
 boolean unlock(java.lang.String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockMailRepository

public MockMailRepository()
Method Detail

store

public void store(Mail mc)
           throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

list

public java.util.Iterator list()
                        throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

retrieve

public Mail retrieve(java.lang.String key)
              throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

remove

public void remove(Mail mail)
            throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

lock

public boolean lock(java.lang.String key)
             throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

unlock

public boolean unlock(java.lang.String key)
               throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException


Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.