org.apache.james.protocols.smtp.core.fastfail
Class MaxUnknownCmdHandler
java.lang.Object
org.apache.james.protocols.smtp.core.fastfail.MaxUnknownCmdHandler
- All Implemented Interfaces:
- ProtocolHandler, Hook, UnknownHook
public class MaxUnknownCmdHandler
- extends Object
- implements UnknownHook
UnknownHook implementation which disconnect the client after a issue to many unknown commands
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_MAX_UNKOWN
public static final int DEFAULT_MAX_UNKOWN
- See Also:
- Constant Field Values
MaxUnknownCmdHandler
public MaxUnknownCmdHandler()
setMaxUnknownCmdCount
public void setMaxUnknownCmdCount(int maxUnknown)
doUnknown
public HookResult doUnknown(SMTPSession session,
String command)
- Description copied from interface:
UnknownHook
- Called on unknown smtp command
- Specified by:
doUnknown in interface UnknownHook
- Returns:
- result
Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.