|
||||||||||
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.Initializable
java.lang.Exception
Initializable.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.Serviceable
org.apache.avalon.framework.service.ServiceException
Serviceable.service(ServiceManager )
public boolean unlock(java.lang.String key)
MailRepository
unlock
in interface MailRepository
key
- the key of the message to be unlocked
MailRepository.unlock(String)
public boolean lock(java.lang.String key)
MailRepository
lock
in interface MailRepository
key
- 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 MailRepository
mc
- the mail message to store
javax.mail.MessagingException
MailRepository.store(Mail)
protected abstract void internalStore(org.apache.mailet.Mail mc) throws javax.mail.MessagingException, java.io.IOException
javax.mail.MessagingException
java.io.IOException
store(Mail)
public void remove(org.apache.mailet.Mail mail) throws javax.mail.MessagingException
MailRepository
remove
in interface MailRepository
mail
- the message to be removed from the repository
javax.mail.MessagingException
MailRepository.remove(Mail)
public void remove(java.util.Collection mails) throws javax.mail.MessagingException
MailRepository
remove
in interface MailRepository
mails
- The Collection of MailImpl
's to delete
javax.mail.MessagingException
MailRepository.remove(Collection)
public void remove(java.lang.String key) throws javax.mail.MessagingException
MailRepository
remove
in interface MailRepository
key
- the key of the message to be removed from the repository
javax.mail.MessagingException
MailRepository.remove(String)
protected abstract void internalRemove(java.lang.String key) throws javax.mail.MessagingException
javax.mail.MessagingException
remove(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |