|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.mailet.GenericMailet org.apache.james.transport.mailets.AbstractVirtualUserTable
public abstract class AbstractVirtualUserTable
Provides an abstraction of common functionality needed for implementing
a Virtual User Table. Override the mapRecipients
method to
map virtual recipients to real recipients.
Constructor Summary | |
---|---|
AbstractVirtualUserTable()
|
Method Summary | |
---|---|
protected abstract void |
mapRecipients(java.util.Map recipientsMap)
Override to map virtual recipients to real recipients, both local and non-local. |
void |
service(Mail mail)
Checks the recipient list of the email for user mappings. |
Methods inherited from class org.apache.mailet.GenericMailet |
---|
destroy, getInitParameter, getInitParameter, getInitParameterNames, getMailetConfig, getMailetContext, getMailetInfo, getMailetName, init, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractVirtualUserTable()
Method Detail |
---|
public void service(Mail mail) throws javax.mail.MessagingException
service
in interface Mailet
service
in class GenericMailet
mail
- the mail to process
javax.mail.MessagingException
- - if an exception occurs that interferes with the mailet's normal operationprotected abstract void mapRecipients(java.util.Map recipientsMap) throws javax.mail.MessagingException
MailAddress
object.
Translate virtual recipients to real recipients by mapping a string containing the
address of the real recipient as a value to a key. Leave the value null
if no mapping should be performed. Multiple recipients may be specified by delineating
the mapped string with commas, semi-colons or colons.
- Parameters:
recipientsMap
- the mapping of virtual to real recipients, as
MailAddress
es to String
s.
- Throws:
javax.mail.MessagingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |