org.apache.james.smtpserver
Class UnknownCmdHandler

java.lang.Object
  extended by org.apache.james.smtpserver.UnknownCmdHandler
All Implemented Interfaces:
CommandHandler

public class UnknownCmdHandler
extends java.lang.Object
implements CommandHandler

Default command handler for handling unknown commands


Field Summary
static java.lang.String UNKNOWN_COMMAND
          The name of the command handled by the command handler
 
Constructor Summary
UnknownCmdHandler()
           
 
Method Summary
 void onCommand(SMTPSession session)
          Handler method called upon receipt of an unrecognized command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN_COMMAND

public static final java.lang.String UNKNOWN_COMMAND
The name of the command handled by the command handler

See Also:
Constant Field Values
Constructor Detail

UnknownCmdHandler

public UnknownCmdHandler()
Method Detail

onCommand

public void onCommand(SMTPSession session)
Handler method called upon receipt of an unrecognized command. Returns an error response and logs the command.

Specified by:
onCommand in interface CommandHandler
See Also:
CommandHandler.onCommand(SMTPSession)


Copyright © 2002-2007 The Apache Software Foundation. All Rights Reserved.