public class UnknownCmdHandler extends AbstractHookableCmdHandler<UnknownHook>
Constructor and Description |
---|
UnknownCmdHandler() |
Modifier and Type | Method and Description |
---|---|
protected HookResult |
callHook(UnknownHook rawHook,
SMTPSession session,
String parameters)
Must be implemented by hookable cmd handlers to make the effective call to an hook.
|
protected Response |
doCoreCmd(SMTPSession session,
String command,
String parameters)
Execute the core commandHandling.
|
protected Response |
doFilterChecks(SMTPSession session,
String command,
String parameters)
Execute Syntax checks and return a SMTPResponse if a syntax error was
detected, otherwise null.
|
protected Class<UnknownHook> |
getHookInterface()
Return the interface which hooks need to implement to hook in
|
Collection<String> |
getImplCommands()
Return a Collection of implemented commands
|
calcDefaultSMTPResponse, getHooks, getMarkerInterfaces, onCommand, wireExtensions
public Collection<String> getImplCommands()
CommandHandler
CommandHandler.getImplCommands()
protected Response doCoreCmd(SMTPSession session, String command, String parameters)
AbstractHookableCmdHandler
doCoreCmd
in class AbstractHookableCmdHandler<UnknownHook>
protected Response doFilterChecks(SMTPSession session, String command, String parameters)
AbstractHookableCmdHandler
doFilterChecks
in class AbstractHookableCmdHandler<UnknownHook>
null
protected HookResult callHook(UnknownHook rawHook, SMTPSession session, String parameters)
AbstractHookableCmdHandler
callHook
in class AbstractHookableCmdHandler<UnknownHook>
rawHook
- the hooksession
- the sessionparameters
- the parametersprotected Class<UnknownHook> getHookInterface()
AbstractHookableCmdHandler
getHookInterface
in class AbstractHookableCmdHandler<UnknownHook>
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.