public class JCRMailRepository extends AbstractMailRepository implements MailRepository
DEEP_DEBUG| Constructor and Description |
|---|
JCRMailRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
doConfigure(org.apache.commons.configuration.HierarchicalConfiguration config) |
void |
init() |
protected void |
internalRemove(String key) |
protected void |
internalStore(org.apache.mailet.Mail mail) |
Iterator<String> |
list()
List string keys of messages in repository.
|
org.apache.mailet.Mail |
retrieve(String key)
Retrieves a message given a key.
|
void |
setRepository(javax.jcr.Repository repository) |
protected String |
toSafeName(String key) |
configure, getLogger, lock, remove, remove, remove, setLog, store, unlockpublic void setRepository(javax.jcr.Repository repository)
@PostConstruct public void init() throws Exception
Exceptionpublic void doConfigure(org.apache.commons.configuration.HierarchicalConfiguration config)
throws org.apache.commons.configuration.ConfigurationException
doConfigure in class AbstractMailRepositoryorg.apache.commons.configuration.ConfigurationException#doConfigure(org.apache.commons.configuration.HierarchicalConfiguration)public Iterator<String> list() throws javax.mail.MessagingException
MailRepositorylist in interface MailRepositoryIterator over the list of keys in the repositoryjavax.mail.MessagingExceptionpublic org.apache.mailet.Mail retrieve(String key) throws javax.mail.MessagingException
MailRepositoryretrieve in interface MailRepositorykey - the key of the message to retrievejavax.mail.MessagingExceptionprotected void internalRemove(String key) throws javax.mail.MessagingException
internalRemove in class AbstractMailRepositoryjavax.mail.MessagingExceptionAbstractMailRepository.remove(String)protected void internalStore(org.apache.mailet.Mail mail)
throws javax.mail.MessagingException,
IOException
internalStore in class AbstractMailRepositoryjavax.mail.MessagingExceptionIOExceptionAbstractMailRepository.store(Mail)Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.