public class MailSizeEsmtpExtension extends Object implements MailParametersHook, EhloExtension, DataLineFilter, MessageHook
| Constructor and Description |
|---|
MailSizeEsmtpExtension() |
| Modifier and Type | Method and Description |
|---|---|
HookResult |
doMailParameter(SMTPSession session,
String paramName,
String paramValue)
Return the HookResult after run the hook
|
List<String> |
getImplementedEsmtpFeatures(SMTPSession session) |
String[] |
getMailParamNames() |
Response |
onLine(SMTPSession session,
ByteBuffer line,
LineHandler<SMTPSession> next)
Handle line processing
|
HookResult |
onMessage(SMTPSession session,
MailEnvelope mail)
Handle Message
|
public HookResult doMailParameter(SMTPSession session, String paramName, String paramValue)
MailParametersHookdoMailParameter in interface MailParametersHooksession - the SMTPSessionparamName - parameter nameparamValue - parameter valueMailParametersHook.doMailParameter(org.apache.james.protocols.smtp.SMTPSession, java.lang.String, java.lang.String)public String[] getMailParamNames()
getMailParamNames in interface MailParametersHookMailParametersHook.getMailParamNames()public List<String> getImplementedEsmtpFeatures(SMTPSession session)
getImplementedEsmtpFeatures in interface EhloExtensionEhloExtension.getImplementedEsmtpFeatures(org.apache.james.protocols.smtp.SMTPSession)public Response onLine(SMTPSession session, ByteBuffer line, LineHandler<SMTPSession> next)
DataLineFilteronLine in interface DataLineFilterorg.apache.james.protocols.smtp.core.DataLineFilter#onLine(SMTPSession, byte[], LineHandler)public HookResult onMessage(SMTPSession session, MailEnvelope mail)
MessageHookonMessage in interface MessageHookMessageHook.onMessage(SMTPSession, MailEnvelope)Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.