public interface MailPolicyFilter extends PolicyFilter, MailListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
Modifier and Type | Method and Description |
---|---|
void |
afterSendMail(MailMessage msg,
java.util.HashMap<java.lang.String,java.lang.Object> ctxt)
Invoked after a mail was sent.
|
boolean |
beforeSendMail(MailMessage msg,
java.util.HashMap<java.lang.String,java.lang.Object> ctxt)
Invoked before a mail is sent.
|
init
fetchMessage
static final java.lang.String REVISION
boolean beforeSendMail(MailMessage msg, java.util.HashMap<java.lang.String,java.lang.Object> ctxt)
msg
- the MailMessage instance that will be sentctxt
- a context used to store information for this mail sending
(context is used accross beforeSendMail and afterSensMail)void afterSendMail(MailMessage msg, java.util.HashMap<java.lang.String,java.lang.Object> ctxt)
This method may not be invoked if an exception occured during sending or if sending was cancelled by a MailPolicyFilter in beforeSendMail.
msg
- the MailMessage instance that was sentctxt
- a context used to store information for this mail sending
(context is used accross beforeSendMail and afterSensMail)Copyright © 2001-2010 Jalios SA. All Rights Reserved.