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)
MailParametersHook
doMailParameter
in interface MailParametersHook
session
- 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 MailParametersHook
MailParametersHook.getMailParamNames()
public List<String> getImplementedEsmtpFeatures(SMTPSession session)
getImplementedEsmtpFeatures
in interface EhloExtension
EhloExtension.getImplementedEsmtpFeatures(org.apache.james.protocols.smtp.SMTPSession)
public Response onLine(SMTPSession session, ByteBuffer line, LineHandler<SMTPSession> next)
DataLineFilter
onLine
in interface DataLineFilter
org.apache.james.protocols.smtp.core.DataLineFilter#onLine(SMTPSession, byte[], LineHandler)
public HookResult onMessage(SMTPSession session, MailEnvelope mail)
MessageHook
onMessage
in interface MessageHook
MessageHook.onMessage(SMTPSession, MailEnvelope)
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.