org.apache.james.protocols.smtp.core.esmtp
Class MailSizeEsmtpExtension

java.lang.Object
  extended by org.apache.james.protocols.smtp.core.esmtp.MailSizeEsmtpExtension
All Implemented Interfaces:
DataLineFilter, EhloExtension, MailParametersHook, MessageHook

public class MailSizeEsmtpExtension
extends java.lang.Object
implements MailParametersHook, EhloExtension, DataLineFilter, MessageHook

Handle the ESMTP SIZE extension.


Constructor Summary
MailSizeEsmtpExtension()
           
 
Method Summary
 HookResult doMailParameter(SMTPSession session, java.lang.String paramName, java.lang.String paramValue)
          Return the HookResult after run the hook
 java.util.List<java.lang.String> getImplementedEsmtpFeatures(SMTPSession session)
           
 java.lang.String[] getMailParamNames()
           
 void onLine(SMTPSession session, byte[] line, LineHandler<SMTPSession> next)
          Handle line processing
 HookResult onMessage(SMTPSession session, MailEnvelope mail)
          Handle Message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailSizeEsmtpExtension

public MailSizeEsmtpExtension()
Method Detail

doMailParameter

public HookResult doMailParameter(SMTPSession session,
                                  java.lang.String paramName,
                                  java.lang.String paramValue)
Description copied from interface: MailParametersHook
Return the HookResult after run the hook

Specified by:
doMailParameter in interface MailParametersHook
Parameters:
session - the SMTPSession
paramName - parameter name
paramValue - parameter value
Returns:
HockResult
See Also:
MailParametersHook.doMailParameter(org.apache.james.protocols.smtp.SMTPSession, java.lang.String, java.lang.String)

getMailParamNames

public java.lang.String[] getMailParamNames()
Specified by:
getMailParamNames in interface MailParametersHook
Returns:
an array of supported parameters
See Also:
MailParametersHook.getMailParamNames()

getImplementedEsmtpFeatures

public java.util.List<java.lang.String> getImplementedEsmtpFeatures(SMTPSession session)
Specified by:
getImplementedEsmtpFeatures in interface EhloExtension
See Also:
EhloExtension.getImplementedEsmtpFeatures(org.apache.james.protocols.smtp.SMTPSession)

onLine

public void onLine(SMTPSession session,
                   byte[] line,
                   LineHandler<SMTPSession> next)
Description copied from interface: DataLineFilter
Handle line processing

Specified by:
onLine in interface DataLineFilter

onMessage

public HookResult onMessage(SMTPSession session,
                            MailEnvelope mail)
Description copied from interface: MessageHook
Handle Message

Specified by:
onMessage in interface MessageHook
See Also:
org.apache.james.protocols.smtp.hook.MessageHook#onMessage(org.apache.james.protocols.smtp.SMTPSession, org.apache.james.protocols.smtp.MailEnvelopeImpl)


Copyright © 2010 The Apache Software Foundation. All Rights Reserved.