|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.protocols.smtp.core.AbstractHookableCmdHandler<MailHook>
org.apache.james.protocols.smtp.core.MailCmdHandler
public class MailCmdHandler
Handles MAIL command
| Constructor Summary | |
|---|---|
MailCmdHandler()
|
|
| Method Summary | |
|---|---|
protected HookResult |
callHook(MailHook rawHook,
SMTPSession session,
String parameters)
Must be implemented by hookable cmd handlers to make the effective call to an hook. |
protected SMTPResponse |
doCoreCmd(SMTPSession session,
String command,
String parameters)
Execute the core commandHandling. |
protected SMTPResponse |
doFilterChecks(SMTPSession session,
String command,
String parameters)
Execute Syntax checks and return a SMTPResponse if a syntax error was detected, otherwise null. |
protected String |
getDefaultDomain()
Return the default domain to append if the sender contains none |
protected Class<MailHook> |
getHookInterface()
Return the interface which hooks need to implement to hook in |
Collection<String> |
getImplCommands()
|
List<Class<?>> |
getMarkerInterfaces()
|
Response |
onCommand(SMTPSession session,
Request request)
Handle command processing |
void |
wireExtensions(Class interfaceName,
List extension)
|
| Methods inherited from class org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler |
|---|
calcDefaultSMTPResponse, getHooks |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MailCmdHandler()
| Method Detail |
|---|
public Response onCommand(SMTPSession session,
Request request)
AbstractHookableCmdHandler
onCommand in interface CommandHandler<SMTPSession>onCommand in class AbstractHookableCmdHandler<MailHook>#onCommand(SMTPSession, Request)public Collection<String> getImplCommands()
CommandHandler.getImplCommands()
protected SMTPResponse doCoreCmd(SMTPSession session,
String command,
String parameters)
AbstractHookableCmdHandler
doCoreCmd in class AbstractHookableCmdHandler<MailHook>AbstractHookableCmdHandler.doCoreCmd(org.apache.james.protocols.smtp.SMTPSession,
java.lang.String, java.lang.String)
protected SMTPResponse doFilterChecks(SMTPSession session,
String command,
String parameters)
AbstractHookableCmdHandler
doFilterChecks in class AbstractHookableCmdHandler<MailHook>nullAbstractHookableCmdHandler.doFilterChecks(org.apache.james.protocols.smtp.SMTPSession,
java.lang.String, java.lang.String)protected Class<MailHook> getHookInterface()
AbstractHookableCmdHandler
getHookInterface in class AbstractHookableCmdHandler<MailHook>AbstractHookableCmdHandler.getHookInterface()
protected HookResult callHook(MailHook rawHook,
SMTPSession session,
String parameters)
callHook in class AbstractHookableCmdHandler<MailHook>rawHook - the hooksession - the sessionparameters - the parameters
public List<Class<?>> getMarkerInterfaces()
getMarkerInterfaces in interface ExtensibleHandlergetMarkerInterfaces in class AbstractHookableCmdHandler<MailHook>AbstractHookableCmdHandler.getMarkerInterfaces()
public void wireExtensions(Class interfaceName,
List extension)
wireExtensions in interface ExtensibleHandlerwireExtensions in class AbstractHookableCmdHandler<MailHook>AbstractHookableCmdHandler.wireExtensions(java.lang.Class, java.util.List)protected String getDefaultDomain()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||