com.hs.mail.mailet
Class ToRepository

java.lang.Object
  extended by com.hs.mail.mailet.AbstractMailet
      extended by com.hs.mail.mailet.ToRepository
All Implemented Interfaces:
Mailet

public class ToRepository
extends AbstractMailet

Since:
29 Jun, 2010
Author:
Won Chul Doh

Field Summary
 
Fields inherited from class com.hs.mail.mailet.AbstractMailet
context
 
Constructor Summary
ToRepository()
           
 
Method Summary
 boolean accept(Set<Recipient> recipients, SmtpMessage message)
          Check if the mailet is interested in the given recipients and message.
 void service(Set<Recipient> recipients, SmtpMessage message)
          Called by the SmtpMessageConsumer to allow the mailet to process the message.
 
Methods inherited from class com.hs.mail.mailet.AbstractMailet
getMailboxManager, getUserManager, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToRepository

public ToRepository()
Method Detail

accept

public boolean accept(Set<Recipient> recipients,
                      SmtpMessage message)
Description copied from interface: Mailet
Check if the mailet is interested in the given recipients and message. If this method returns false, the service method will not be called for this message.

Specified by:
accept in interface Mailet
Overrides:
accept in class AbstractMailet
Parameters:
recipients - collection of recipients this mailet must process
message - the Mail object that contains the message and routing information
Returns:
true if the mailet want to process the message, otherwise false

service

public void service(Set<Recipient> recipients,
                    SmtpMessage message)
             throws javax.mail.MessagingException
Description copied from interface: Mailet
Called by the SmtpMessageConsumer to allow the mailet to process the message.

Specified by:
service in interface Mailet
Specified by:
service in class AbstractMailet
Parameters:
recipients - collection of recipients this mailet must process
message - the Mail object that contains the message and routing information
Throws:
javax.mail.MessagingException


Copyright © 2011. All Rights Reserved.