|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.james.mailrepository.AbstractMailRepository
public abstract class AbstractMailRepository
This class represent an AbstractMailRepository. All MailRepositories should extend this class.
| Field Summary | |
|---|---|
protected static boolean |
DEEP_DEBUG
Whether 'deep debugging' is turned on. |
protected org.apache.avalon.cornerstone.services.store.Store |
store
|
| Fields inherited from interface org.apache.james.services.MailRepository |
|---|
MAIL, ROLE |
| Constructor Summary | |
|---|---|
AbstractMailRepository()
|
|
| Method Summary | |
|---|---|
void |
initialize()
|
protected abstract void |
internalRemove(java.lang.String key)
|
protected abstract void |
internalStore(org.apache.mailet.Mail mc)
|
boolean |
lock(java.lang.String key)
Obtains a lock on a message identified by key |
void |
remove(java.util.Collection mails)
Remove an Collection of mails from the repository |
void |
remove(org.apache.mailet.Mail mail)
Removes a specified message |
void |
remove(java.lang.String key)
Removes a message identified by key. |
void |
service(org.apache.avalon.framework.service.ServiceManager componentManager)
|
void |
store(org.apache.mailet.Mail mc)
Stores a message in this repository. |
boolean |
unlock(java.lang.String key)
Releases a lock on a message identified the key |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.james.services.MailRepository |
|---|
list, retrieve |
| Methods inherited from interface org.apache.avalon.framework.configuration.Configurable |
|---|
configure |
| Field Detail |
|---|
protected static final boolean DEEP_DEBUG
protected org.apache.avalon.cornerstone.services.store.Store store
| Constructor Detail |
|---|
public AbstractMailRepository()
| Method Detail |
|---|
public void initialize()
throws java.lang.Exception
initialize in interface org.apache.avalon.framework.activity.Initializablejava.lang.ExceptionInitializable.initialize()
public void service(org.apache.avalon.framework.service.ServiceManager componentManager)
throws org.apache.avalon.framework.service.ServiceException
service in interface org.apache.avalon.framework.service.Serviceableorg.apache.avalon.framework.service.ServiceExceptionServiceable.service(ServiceManager )public boolean unlock(java.lang.String key)
MailRepository
unlock in interface MailRepositorykey - the key of the message to be unlocked
MailRepository.unlock(String)public boolean lock(java.lang.String key)
MailRepository
lock in interface MailRepositorykey - the key of the message to be locked
MailRepository.lock(String)
public void store(org.apache.mailet.Mail mc)
throws javax.mail.MessagingException
MailRepository
store in interface MailRepositorymc - the mail message to store
javax.mail.MessagingExceptionMailRepository.store(Mail)
protected abstract void internalStore(org.apache.mailet.Mail mc)
throws javax.mail.MessagingException,
java.io.IOException
javax.mail.MessagingException
java.io.IOExceptionstore(Mail)
public void remove(org.apache.mailet.Mail mail)
throws javax.mail.MessagingException
MailRepository
remove in interface MailRepositorymail - the message to be removed from the repository
javax.mail.MessagingExceptionMailRepository.remove(Mail)
public void remove(java.util.Collection mails)
throws javax.mail.MessagingException
MailRepository
remove in interface MailRepositorymails - The Collection of MailImpl's to delete
javax.mail.MessagingExceptionMailRepository.remove(Collection)
public void remove(java.lang.String key)
throws javax.mail.MessagingException
MailRepository
remove in interface MailRepositorykey - the key of the message to be removed from the repository
javax.mail.MessagingExceptionMailRepository.remove(String)
protected abstract void internalRemove(java.lang.String key)
throws javax.mail.MessagingException
javax.mail.MessagingExceptionremove(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||