|
||||||||||
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.javamail.AbstractJavamailStoreMailRepository
org.apache.james.mailrepository.javamail.UIDPlusFolderMailRepository
public class UIDPlusFolderMailRepository
MailRepository implementation to store mail in a Javamail store which
provides the UID Plus method public long[] addUIDMessages.
This implementation should be considered as EXPERIMENTAL.
TODO examine for thread-safety
Field Summary | |
---|---|
static int |
DELIVERY_MODE_CLOSED
|
static int |
DELIVERY_MODE_OPEN
|
static int |
DELIVERY_MODE_TRY
|
Fields inherited from class org.apache.james.mailrepository.javamail.AbstractJavamailStoreMailRepository |
---|
cacheMessages, DEEP_DEBUG, log |
Fields inherited from interface org.apache.james.services.MailRepository |
---|
MAIL, ROLE |
Constructor Summary | |
---|---|
UIDPlusFolderMailRepository()
|
Method Summary | |
---|---|
protected long |
addUIDMessage(javax.mail.Message message)
|
FolderInterface |
createAdapter(javax.mail.Folder folder)
returns a UIDPlusFolderAdapter wrapper |
protected UidToKeyBidiMap |
getUidToKeyBidiMap()
lazy loads UidToKeyBidiMap |
java.util.Iterator |
list()
List string keys of messages in repository. |
void |
remove(java.lang.String key)
Removes a message identified by key. |
org.apache.mailet.Mail |
retrieve(java.lang.String key)
Retrieves a message given a key. |
void |
store(org.apache.mailet.Mail mc)
Stores a message in this repository. |
Methods inherited from class org.apache.james.mailrepository.javamail.AbstractJavamailStoreMailRepository |
---|
configure, enableLogging, getFolderGateKeeper, getLock, getRandom, getStore, initialize, lock, remove, remove, service, unlock |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DELIVERY_MODE_CLOSED
public static final int DELIVERY_MODE_TRY
public static final int DELIVERY_MODE_OPEN
Constructor Detail |
---|
public UIDPlusFolderMailRepository()
Method Detail |
---|
protected long addUIDMessage(javax.mail.Message message) throws javax.mail.MessagingException
javax.mail.MessagingException
public void store(org.apache.mailet.Mail mc) throws javax.mail.MessagingException
mc
- the mail message to store
javax.mail.MessagingException
protected UidToKeyBidiMap getUidToKeyBidiMap()
public org.apache.mailet.Mail retrieve(java.lang.String key) throws javax.mail.MessagingException
key
- the key of the message to retrieve
javax.mail.MessagingException
public void remove(java.lang.String key) throws javax.mail.MessagingException
key
- the key of the message to be removed from the repository
javax.mail.MessagingException
public java.util.Iterator list() throws javax.mail.MessagingException
Iterator
over the list of keys in the
repository
javax.mail.MessagingException
public FolderInterface createAdapter(javax.mail.Folder folder)
folder
- JavaMail folderUIDPlusFolderAdapter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |