org.apache.james.transport.mailets
Class AbstractVirtualUserTableMailet
java.lang.Object
org.apache.mailet.base.GenericMailet
org.apache.james.transport.mailets.AbstractVirtualUserTableMailet
- All Implemented Interfaces:
- org.apache.mailet.Mailet, org.apache.mailet.MailetConfig
- Direct Known Subclasses:
- UsersRepositoryAliasingForwarding, VirtualUserTable
public abstract class AbstractVirtualUserTableMailet
- extends org.apache.mailet.base.GenericMailet
Abstract base class which should get extended by classes which handle mapping
operations based on VirtualUserTable implementations
Method Summary |
protected java.util.Collection |
handleMappings(java.util.Collection mappings,
org.apache.mailet.MailAddress sender,
org.apache.mailet.MailAddress recipient,
javax.mail.internet.MimeMessage message)
Handle the given mappings to map the original recipient to the right one |
abstract java.util.Collection |
processMail(org.apache.mailet.MailAddress sender,
org.apache.mailet.MailAddress recipient,
javax.mail.internet.MimeMessage message)
Process the mail |
void |
service(org.apache.mailet.Mail mail)
|
Methods inherited from class org.apache.mailet.base.GenericMailet |
arrayToString, checkInitParameters, destroy, getInitParameter, 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 |
AbstractVirtualUserTableMailet
public AbstractVirtualUserTableMailet()
service
public void service(org.apache.mailet.Mail mail)
throws javax.mail.MessagingException
- Specified by:
service
in interface org.apache.mailet.Mailet
- Specified by:
service
in class org.apache.mailet.base.GenericMailet
- Throws:
javax.mail.MessagingException
handleMappings
protected java.util.Collection handleMappings(java.util.Collection mappings,
org.apache.mailet.MailAddress sender,
org.apache.mailet.MailAddress recipient,
javax.mail.internet.MimeMessage message)
throws javax.mail.MessagingException
- Handle the given mappings to map the original recipient to the right one
- Parameters:
mappings
- a collection of mappings for the given recipientsender
- the sender of the mailrecipient
- the original recipient of the emailmessage
- the mail message
- Returns:
- a collection of mapped recpient addresses
- Throws:
javax.mail.MessagingException
processMail
public abstract java.util.Collection processMail(org.apache.mailet.MailAddress sender,
org.apache.mailet.MailAddress recipient,
javax.mail.internet.MimeMessage message)
throws javax.mail.MessagingException
- Process the mail
- Parameters:
sender
- the sender of the mailrecipient
- the recipient of the mailmessage
- the mail message
- Returns:
- collection of recipients
- Throws:
javax.mail.MessagingException
Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.