|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Mailet
Method Summary | |
---|---|
boolean |
accept(Set<Recipient> recipients,
SmtpMessage message)
Check if the mailet is interested in the given recipients and message. |
void |
init(MailetContext context)
Initialize the mailet. |
void |
service(Set<Recipient> recipients,
SmtpMessage message)
Called by the SmtpMessageConsumer to allow the mailet to process the message. |
Method Detail |
---|
void init(MailetContext context)
The SmtpMessageConsumer calls the init method exactly once after instantiating the mailet. The init method must complete successfully before the mailet can receive any requests.
boolean accept(Set<Recipient> recipients, SmtpMessage message)
recipients
- collection of recipients this mailet must processmessage
- the Mail object that contains the message and routing
information
void service(Set<Recipient> recipients, SmtpMessage message) throws javax.mail.MessagingException
recipients
- collection of recipients this mailet must processmessage
- the Mail object that contains the message and routing
information
javax.mail.MessagingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |