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, unlock
public void setRepository(javax.jcr.Repository repository)
@PostConstruct public void init() throws Exception
Exception
public void doConfigure(org.apache.commons.configuration.HierarchicalConfiguration config) throws org.apache.commons.configuration.ConfigurationException
doConfigure
in class AbstractMailRepository
org.apache.commons.configuration.ConfigurationException
#doConfigure(org.apache.commons.configuration.HierarchicalConfiguration)
public Iterator<String> list() throws javax.mail.MessagingException
MailRepository
list
in interface MailRepository
Iterator
over the list of keys in the repositoryjavax.mail.MessagingException
public org.apache.mailet.Mail retrieve(String key) throws javax.mail.MessagingException
MailRepository
retrieve
in interface MailRepository
key
- the key of the message to retrievejavax.mail.MessagingException
protected void internalRemove(String key) throws javax.mail.MessagingException
internalRemove
in class AbstractMailRepository
javax.mail.MessagingException
AbstractMailRepository.remove(String)
protected void internalStore(org.apache.mailet.Mail mail) throws javax.mail.MessagingException, IOException
internalStore
in class AbstractMailRepository
javax.mail.MessagingException
IOException
AbstractMailRepository.store(Mail)
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.