public class QuitCmdHandler extends AbstractHookableCmdHandler<QuitHook>
Constructor and Description |
---|
QuitCmdHandler() |
Modifier and Type | Method and Description |
---|---|
protected HookResult |
callHook(QuitHook 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<QuitHook> |
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<QuitHook>
AbstractHookableCmdHandler.doCoreCmd(org.apache.james.protocols.smtp.SMTPSession,
java.lang.String, java.lang.String)
protected Response doFilterChecks(SMTPSession session, String command, String parameters)
AbstractHookableCmdHandler
doFilterChecks
in class AbstractHookableCmdHandler<QuitHook>
null
AbstractHookableCmdHandler.doFilterChecks(org.apache.james.protocols.smtp.SMTPSession,
java.lang.String, java.lang.String)
protected Class<QuitHook> getHookInterface()
AbstractHookableCmdHandler
getHookInterface
in class AbstractHookableCmdHandler<QuitHook>
AbstractHookableCmdHandler.getHookInterface()
protected HookResult callHook(QuitHook rawHook, SMTPSession session, String parameters)
callHook
in class AbstractHookableCmdHandler<QuitHook>
rawHook
- the hooksession
- the sessionparameters
- the parametersCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.