| java.lang.Object org.apache.mailet.GenericMailet org.apache.james.transport.mailets.AbstractVirtualUserTable
All known Subclasses: org.apache.james.transport.mailets.XMLVirtualUserTable, org.apache.james.transport.mailets.JDBCVirtualUserTable,
AbstractVirtualUserTable | abstract public class AbstractVirtualUserTable extends GenericMailet (Code) | | Provides an abstraction of common functionality needed for implementing
a Virtual User Table. Override the mapRecipients method to
map virtual recipients to real recipients.
|
Method Summary | |
abstract protected void | mapRecipients(Map recipientsMap) Override to map virtual recipients to real recipients, both local and non-local.
Each key in the provided map corresponds to a potential virtual recipient, stored as
a 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. | public void | service(Mail mail) Checks the recipient list of the email for user mappings. |
mapRecipients | abstract protected void mapRecipients(Map recipientsMap) throws MessagingException(Code) | | Override to map virtual recipients to real recipients, both local and non-local.
Each key in the provided map corresponds to a potential virtual recipient, stored as
a 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. |
service | public void service(Mail mail) throws MessagingException(Code) | | Checks the recipient list of the email for user mappings. Maps recipients as
appropriate, modifying the recipient list of the mail and sends mail to any new
non-local recipients.
Parameters: mail - the mail to process |
|
|