|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.avalon.framework.logger.AbstractLogEnabled | +--org.apache.james.mailrepository.AvalonMailRepository
Implementation of a MailRepository on a FileSystem.
Requires a configuration element in the .conf.xml file of the form:
Field Summary | |
protected static boolean |
DEEP_DEBUG
Whether 'deep debugging' is turned on. |
Fields inherited from interface org.apache.james.services.MailRepository |
MAIL |
Constructor Summary | |
AvalonMailRepository()
|
Method Summary | |
void |
compose(ComponentManager componentManager)
|
void |
configure(Configuration conf)
|
void |
initialize()
|
Iterator |
list()
List string keys of messages in repository. |
boolean |
lock(String key)
Obtains a lock on a message identified by a key |
void |
remove(MailImpl mail)
Removes a specified message |
void |
remove(String key)
Removes a message identified by key. |
MailImpl |
retrieve(String key)
Retrieves a message given a key. |
void |
store(MailImpl mc)
Stores a message in this repository. |
boolean |
unlock(String key)
Releases a lock on a message identified by a 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 |
Field Detail |
protected static final boolean DEEP_DEBUG
Constructor Detail |
public AvalonMailRepository()
Method Detail |
public void compose(ComponentManager componentManager) throws ComponentException
compose
in interface Composable
ComponentException
Composable.compose(ComponentManager)
public void configure(Configuration conf) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
Configurable.configure(Configuration)
public void initialize() throws Exception
initialize
in interface Initializable
Exception
Initializable.initialize()
public boolean unlock(String key)
unlock
in interface MailRepository
key
- the key of the message to be unlocked
public boolean lock(String key)
lock
in interface MailRepository
key
- the key of the message to be locked
public void store(MailImpl mc)
store
in interface MailRepository
mc
- the mail message to storepublic MailImpl retrieve(String key)
retrieve
in interface MailRepository
key
- the key of the message to retrieve
public void remove(MailImpl mail)
remove
in interface MailRepository
mail
- the message to be removed from the repositorypublic void remove(String key)
remove
in interface MailRepository
key
- the key of the message to be removed from the repositorypublic Iterator list()
list
in interface MailRepository
Iterator
over the list of keys in the repository
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |