| org.apache.james.mailrepository.AvalonMailRepository
All known Subclasses: org.apache.james.mailrepository.AvalonSpoolRepository,
AvalonMailRepository | public class AvalonMailRepository extends AbstractLogEnabled implements MailRepository,Configurable,Serviceable,Initializable(Code) | | Implementation of a MailRepository on a FileSystem.
Requires a configuration element in the .conf.xml file of the form:
<repository destinationURL="file://path-to-root-dir-for-repository"
type="MAIL"
model="SYNCHRONOUS"/>
Requires a logger called MailRepository.
version: 1.0.0, 24/04/1999 |
Field Summary | |
final protected static boolean | DEEP_DEBUG Whether 'deep debugging' is turned on. |
DEEP_DEBUG | final protected static boolean DEEP_DEBUG(Code) | | Whether 'deep debugging' is turned on.
|
configure | public void configure(Configuration conf) throws ConfigurationException(Code) | | See Also: org.apache.avalon.framework.configuration.Configurable.configure(Configuration) |
initialize | public void initialize() throws Exception(Code) | | See Also: org.apache.avalon.framework.activity.Initializable.initialize |
list | public Iterator list()(Code) | | List string keys of messages in repository.
an Iterator over the list of keys in the repository |
lock | public boolean lock(String key)(Code) | | Obtains a lock on a message identified by a key
Parameters: key - the key of the message to be locked true if successfully obtained the lock, false otherwise |
remove | public void remove(Mail mail) throws MessagingException(Code) | | Removes a specified message
Parameters: mail - the message to be removed from the repository |
remove | public void remove(Collection mails) throws MessagingException(Code) | | Removes a Collection of mails from the repository
Parameters: mails - The Collection of MailImpl 's to delete throws: MessagingException - since: 2.2.0 |
remove | public void remove(String key) throws MessagingException(Code) | | Removes a message identified by key.
Parameters: key - the key of the message to be removed from the repository |
retrieve | public Mail retrieve(String key) throws MessagingException(Code) | | Retrieves a message given a key. At the moment, keys can be obtained
from list() in superinterface Store.Repository
Parameters: key - the key of the message to retrieve the mail corresponding to this key, null if none exists |
service | public void service(ServiceManager componentManager) throws ServiceException(Code) | | See Also: org.apache.avalon.framework.service.Serviceable.compose(ServiceManager) |
store | public void store(Mail mc) throws MessagingException(Code) | | Stores a message in this repository. Shouldn't this return the key
under which it is stored?
Parameters: mc - the mail message to store |
unlock | public boolean unlock(String key)(Code) | | Releases a lock on a message identified by a key
Parameters: key - the key of the message to be unlocked true if successfully released the lock, false otherwise |
|
|