|
||||||||||
| 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<HeloHook>
org.apache.james.protocols.smtp.core.esmtp.EhloCmdHandler
public class EhloCmdHandler
Handles EHLO command
| Constructor Summary | |
|---|---|
EhloCmdHandler()
|
|
| Method Summary | |
|---|---|
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 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 Class<HeloHook> |
getHookInterface()
Return the interface which hooks need to implement to hook in |
Collection<String> |
getImplCommands()
|
List<String> |
getImplementedEsmtpFeatures(SMTPSession session)
|
List<Class<?>> |
getMarkerInterfaces()
|
void |
wireExtensions(Class interfaceName,
List extension)
|
| Methods inherited from class org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler |
|---|
calcDefaultSMTPResponse, getHooks, onCommand |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EhloCmdHandler()
| Method Detail |
|---|
public Collection<String> getImplCommands()
getImplCommands in interface CommandHandler<SMTPSession>CommandHandler.getImplCommands()public List<Class<?>> getMarkerInterfaces()
getMarkerInterfaces in interface ExtensibleHandlergetMarkerInterfaces in class AbstractHookableCmdHandler<HeloHook>ExtensibleHandler.getMarkerInterfaces()
public void wireExtensions(Class interfaceName,
List extension)
wireExtensions in interface ExtensibleHandlerwireExtensions in class AbstractHookableCmdHandler<HeloHook>ExtensibleHandler.wireExtensions(java.lang.Class,
java.util.List)
protected SMTPResponse doCoreCmd(SMTPSession session,
String command,
String parameters)
AbstractHookableCmdHandler
doCoreCmd in class AbstractHookableCmdHandler<HeloHook>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<HeloHook>nullAbstractHookableCmdHandler.doFilterChecks(org.apache.james.protocols.smtp.SMTPSession,
java.lang.String, java.lang.String)protected Class<HeloHook> getHookInterface()
AbstractHookableCmdHandler
getHookInterface in class AbstractHookableCmdHandler<HeloHook>AbstractHookableCmdHandler.getHookInterface()
protected HookResult callHook(HeloHook rawHook,
SMTPSession session,
String parameters)
callHook in class AbstractHookableCmdHandler<HeloHook>rawHook - the hooksession - the sessionparameters - the parameters
public List<String> getImplementedEsmtpFeatures(SMTPSession session)
getImplementedEsmtpFeatures in interface EhloExtensionEhloExtension.getImplementedEsmtpFeatures(org.apache.james.protocols.smtp.SMTPSession)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||