org.apache.james.smtpserver
Interface CommandHandler

All Known Implementing Classes:
AuthCmdHandler, DataCmdHandler, DataFilterCmdHandler, DNSRBLHandler, EhloCmdHandler, EhloFilterCmdHandler, ExpnCmdHandler, GreylistHandler, HeloCmdHandler, HeloFilterCmdHandler, HelpCmdHandler, MailCmdHandler, MailFilterCmdHandler, MaxRcptHandler, NoopCmdHandler, QuitCmdHandler, RcptCmdHandler, RcptFilterCmdHandler, ResolvableEhloHeloHandler, ReverseEqualsEhloHeloHandler, RsetCmdHandler, SPFHandler, SupressDuplicateRcptHandler, TarpitHandler, UnknownCmdHandler, ValidRcptHandler, ValidRcptMX, ValidSenderDomainHandler, VrfyCmdHandler

public interface CommandHandler

Custom command handlers must implement this interface The command handlers will be Server wide common to all the SMTPHandlers, therefore the command handlers must store all the state information in the SMTPSession object


Method Summary
 java.util.Collection getImplCommands()
          Return a Collection of implemented commands
 void onCommand(SMTPSession session)
          Handle the command
 

Method Detail

onCommand

void onCommand(SMTPSession session)
Handle the command


getImplCommands

java.util.Collection getImplCommands()
Return a Collection of implemented commands

Returns:
Collection which contains implemented commands


Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.