org.apache.james.protocols.smtp.core.fastfail
Class MaxRcptHandler

java.lang.Object
  extended by org.apache.james.protocols.smtp.core.fastfail.MaxRcptHandler
All Implemented Interfaces:
ProtocolHandler, Hook, RcptHook

public class MaxRcptHandler
extends Object
implements RcptHook


Constructor Summary
MaxRcptHandler()
           
 
Method Summary
 HookResult doRcpt(SMTPSession session, org.apache.mailet.MailAddress sender, org.apache.mailet.MailAddress rcpt)
          Return the HookResult after run the hook
 void setMaxRcpt(int maxRcpt)
          Set the max rcpt for wich should be accepted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaxRcptHandler

public MaxRcptHandler()
Method Detail

setMaxRcpt

public void setMaxRcpt(int maxRcpt)
Set the max rcpt for wich should be accepted

Parameters:
maxRcpt - The max rcpt count

doRcpt

public HookResult doRcpt(SMTPSession session,
                         org.apache.mailet.MailAddress sender,
                         org.apache.mailet.MailAddress rcpt)
Description copied from interface: RcptHook
Return the HookResult after run the hook

Specified by:
doRcpt in interface RcptHook
Parameters:
session - the SMTPSession
sender - the sender MailAddress
rcpt - the recipient MailAddress
Returns:
HookResult
See Also:
RcptHook.doRcpt(org.apache.james.protocols.smtp.SMTPSession, org.apache.mailet.MailAddress, org.apache.mailet.MailAddress)


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.