public class RcptCmdHandler extends AbstractHookableCmdHandler<RcptHook> implements CommandHandler<SMTPSession>
Modifier and Type | Field and Description |
---|---|
static String |
CURRENT_RECIPIENT |
Constructor and Description |
---|
RcptCmdHandler() |
Modifier and Type | Method and Description |
---|---|
protected HookResult |
callHook(RcptHook 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)
Handler method called upon receipt of a RCPT command.
|
protected Response |
doFilterChecks(SMTPSession session,
String command,
String argument)
Execute Syntax checks and return a SMTPResponse if a syntax error was
detected, otherwise null.
|
protected String |
getDefaultDomain() |
protected Class<RcptHook> |
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onCommand
public static final String CURRENT_RECIPIENT
protected Response doCoreCmd(SMTPSession session, String command, String parameters)
doCoreCmd
in class AbstractHookableCmdHandler<RcptHook>
session
- SMTP session objectcommand
- command passedparameters
- parameters passed in with the command by the SMTP clientprotected Response doFilterChecks(SMTPSession session, String command, String argument)
AbstractHookableCmdHandler
doFilterChecks
in class AbstractHookableCmdHandler<RcptHook>
session
- SMTP session objectargument
- the argument passed in with the command by the SMTP clientnull
public Collection<String> getImplCommands()
CommandHandler
getImplCommands
in interface CommandHandler<SMTPSession>
CommandHandler.getImplCommands()
protected Class<RcptHook> getHookInterface()
AbstractHookableCmdHandler
getHookInterface
in class AbstractHookableCmdHandler<RcptHook>
AbstractHookableCmdHandler.getHookInterface()
protected HookResult callHook(RcptHook rawHook, SMTPSession session, String parameters)
callHook
in class AbstractHookableCmdHandler<RcptHook>
rawHook
- the hooksession
- the sessionparameters
- the parametersprotected String getDefaultDomain()
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.