|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.protocols.smtp.core.esmtp.AuthCmdHandler
public class AuthCmdHandler
handles AUTH command Note: we could extend this to use java5 sasl standard libraries and provide client support against a server implemented via non-james specific hooks. This would allow us to reuse hooks between imap4/pop3/smtp and eventually different system (simple pluggabilty against external authentication services).
| Constructor Summary | |
|---|---|
AuthCmdHandler()
|
|
| Method Summary | |
|---|---|
protected SMTPResponse |
calcDefaultSMTPResponse(HookResult result)
Calculate the SMTPResponse for the given result |
HookResult |
doMailParameter(SMTPSession session,
java.lang.String paramName,
java.lang.String paramValue)
Return the HookResult after run the hook |
protected java.util.List<AuthHook> |
getHooks()
Return a list which holds all hooks for the cmdHandler |
java.util.Collection<java.lang.String> |
getImplCommands()
|
java.util.List<java.lang.String> |
getImplementedEsmtpFeatures(SMTPSession session)
|
java.lang.String[] |
getMailParamNames()
|
java.util.List<java.lang.Class<?>> |
getMarkerInterfaces()
|
Response |
onCommand(SMTPSession session,
Request request)
handles AUTH command |
void |
wireExtensions(java.lang.Class interfaceName,
java.util.List extension)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthCmdHandler()
| Method Detail |
|---|
public Response onCommand(SMTPSession session,
Request request)
onCommand in interface CommandHandler<SMTPSession>protected SMTPResponse calcDefaultSMTPResponse(HookResult result)
result - the HookResult which should converted to SMTPResponse
public java.util.Collection<java.lang.String> getImplCommands()
getImplCommands in interface CommandHandler<SMTPSession>org.apache.james.smtpserver.protocol.CommandHandler#getImplCommands()public java.util.List<java.lang.String> getImplementedEsmtpFeatures(SMTPSession session)
getImplementedEsmtpFeatures in interface EhloExtensionEhloExtension.getImplementedEsmtpFeatures(org.apache.james.protocols.smtp.SMTPSession)public java.util.List<java.lang.Class<?>> getMarkerInterfaces()
getMarkerInterfaces in interface ExtensibleHandlerExtensibleHandler.getMarkerInterfaces()
public void wireExtensions(java.lang.Class interfaceName,
java.util.List extension)
throws WiringException
wireExtensions in interface ExtensibleHandlerWiringExceptionExtensibleHandler.wireExtensions(java.lang.Class, java.util.List)protected java.util.List<AuthHook> getHooks()
public HookResult doMailParameter(SMTPSession session,
java.lang.String paramName,
java.lang.String paramValue)
MailParametersHook
doMailParameter in interface MailParametersHooksession - the SMTPSessionparamName - parameter nameparamValue - parameter value
MailParametersHook.doMailParameter(org.apache.james.protocols.smtp.SMTPSession, java.lang.String, java.lang.String)public java.lang.String[] getMailParamNames()
getMailParamNames in interface MailParametersHookMailParametersHook.getMailParamNames()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||