com.jalios.jcms.policy
Interface MailPolicyFilter
- All Superinterfaces:
- java.lang.Comparable, MailListener, PluginComponent, PolicyFilter
- All Known Implementing Classes:
- AbstractDataMailPolicyFilter, BasicMailPolicyFilter
public interface MailPolicyFilter
- extends PolicyFilter, MailListener
This interface provides hooks on around mail activity.
- Since:
- jcms-6.0.1
- Version:
- $Revision: 28207 $
|
Field Summary |
static java.lang.String |
REVISION
|
|
Method Summary |
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. |
| Methods inherited from interface java.lang.Comparable |
compareTo |
| Methods inherited from interface java.lang.Comparable |
compareTo |
REVISION
static final java.lang.String REVISION
- See Also:
- Constant Field Values
beforeSendMail
boolean beforeSendMail(MailMessage msg,
java.util.HashMap<java.lang.String,java.lang.Object> ctxt)
- Invoked before a mail is sent.
- Parameters:
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)
- Returns:
- false to stop the sending, true to continue
afterSendMail
void afterSendMail(MailMessage msg,
java.util.HashMap<java.lang.String,java.lang.Object> ctxt)
- Invoked after a mail was sent.
This method may not be invoked if an exception occured during sending
or if sending was cancelled by a MailPolicyFilter in beforeSendMail.
- Parameters:
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.