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