org.apache.james.protocols.smtp.core
Class RcptCmdHandler
java.lang.Object
org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler<RcptHook>
org.apache.james.protocols.smtp.core.RcptCmdHandler
- All Implemented Interfaces:
- CommandHandler<SMTPSession>, ExtensibleHandler, ProtocolHandler
public class RcptCmdHandler
- extends AbstractHookableCmdHandler<RcptHook>
- implements CommandHandler<SMTPSession>
Handles RCPT command
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CURRENT_RECIPIENT
public static final String CURRENT_RECIPIENT
- See Also:
- Constant Field Values
RcptCmdHandler
public RcptCmdHandler()
doCoreCmd
protected SMTPResponse doCoreCmd(SMTPSession session,
String command,
String parameters)
- Handler method called upon receipt of a RCPT command. Reads recipient.
Does some connection validation.
- Specified by:
doCoreCmd in class AbstractHookableCmdHandler<RcptHook>
- Parameters:
session - SMTP session objectcommand - command passedparameters - parameters passed in with the command by the SMTP client
- Returns:
- smtp response
doFilterChecks
protected SMTPResponse doFilterChecks(SMTPSession session,
String command,
String argument)
- Description copied from class:
AbstractHookableCmdHandler
- Execute Syntax checks and return a SMTPResponse if a syntax error was
detected, otherwise null.
- Specified by:
doFilterChecks in class AbstractHookableCmdHandler<RcptHook>
- Parameters:
session - SMTP session objectargument - the argument passed in with the command by the SMTP client
- Returns:
- smtp response if a syntax error was detected, otherwise
null
getImplCommands
public Collection<String> getImplCommands()
- Specified by:
getImplCommands in interface CommandHandler<SMTPSession>
- See Also:
CommandHandler.getImplCommands()
getHookInterface
protected Class<RcptHook> getHookInterface()
- Description copied from class:
AbstractHookableCmdHandler
- Return the interface which hooks need to implement to hook in
- Specified by:
getHookInterface in class AbstractHookableCmdHandler<RcptHook>
- Returns:
- interface
- See Also:
AbstractHookableCmdHandler.getHookInterface()
callHook
protected HookResult callHook(RcptHook rawHook,
SMTPSession session,
String parameters)
- Must be implemented by hookable cmd handlers to make the effective call to an hook.
- Specified by:
callHook in class AbstractHookableCmdHandler<RcptHook>
- Parameters:
rawHook - the hooksession - the sessionparameters - the parameters
- Returns:
- the HookResult, will be calculated using HookResultToSMTPResponse.
getDefaultDomain
protected String getDefaultDomain()
Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.