public class MaxUnknownCmdHandler extends Object implements UnknownHook
UnknownHook
implementation which disconnect the client after a issue to many unknown commandsModifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_UNKOWN |
Constructor and Description |
---|
MaxUnknownCmdHandler() |
Modifier and Type | Method and Description |
---|---|
HookResult |
doUnknown(SMTPSession session,
String command)
Called on unknown smtp command
|
void |
setMaxUnknownCmdCount(int maxUnknown) |
public static final int DEFAULT_MAX_UNKOWN
public void setMaxUnknownCmdCount(int maxUnknown)
public HookResult doUnknown(SMTPSession session, String command)
UnknownHook
doUnknown
in interface UnknownHook
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.