|
||||||||||
| 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<UnknownCmdHook>
org.apache.james.protocols.smtp.core.UnknownCmdHandler
public class UnknownCmdHandler
Default command handler for handling unknown commands
| Field Summary | |
|---|---|
static java.lang.String |
UNKNOWN_COMMAND
The name of the command handled by the command handler |
| Constructor Summary | |
|---|---|
UnknownCmdHandler()
|
|
| Method Summary | |
|---|---|
protected HookResult |
callHook(UnknownCmdHook rawHook,
SMTPSession session,
java.lang.String parameters)
Must be implemented by hookable cmd handlers to make the effective call to an hook. |
protected SMTPResponse |
doCoreCmd(SMTPSession session,
java.lang.String command,
java.lang.String parameters)
Execute the core commandHandling. |
protected SMTPResponse |
doFilterChecks(SMTPSession session,
java.lang.String command,
java.lang.String parameters)
Execute Syntax checks and return a SMTPResponse if a syntax error was detected, otherwise null. |
protected java.lang.Class<UnknownCmdHook> |
getHookInterface()
Return the interface which hooks need to implement to hook in |
java.util.Collection<java.lang.String> |
getImplCommands()
|
| Methods inherited from class org.apache.james.protocols.smtp.core.AbstractHookableCmdHandler |
|---|
calcDefaultSMTPResponse, getHooks, getMarkerInterfaces, onCommand, wireExtensions |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String UNKNOWN_COMMAND
| Constructor Detail |
|---|
public UnknownCmdHandler()
| Method Detail |
|---|
public java.util.Collection<java.lang.String> getImplCommands()
org.apache.james.smtpserver.protocol.CommandHandler#getImplCommands()
protected SMTPResponse doCoreCmd(SMTPSession session,
java.lang.String command,
java.lang.String parameters)
AbstractHookableCmdHandler
doCoreCmd in class AbstractHookableCmdHandler<UnknownCmdHook>
protected SMTPResponse doFilterChecks(SMTPSession session,
java.lang.String command,
java.lang.String parameters)
AbstractHookableCmdHandler
doFilterChecks in class AbstractHookableCmdHandler<UnknownCmdHook>
protected HookResult callHook(UnknownCmdHook rawHook,
SMTPSession session,
java.lang.String parameters)
AbstractHookableCmdHandler
callHook in class AbstractHookableCmdHandler<UnknownCmdHook>rawHook - the hooksession - the sessionparameters - the parameters
protected java.lang.Class<UnknownCmdHook> getHookInterface()
AbstractHookableCmdHandler
getHookInterface in class AbstractHookableCmdHandler<UnknownCmdHook>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||