org.apache.james.protocols.smtp.core
Class DataLineMessageHookHandler

java.lang.Object
  extended by org.apache.james.protocols.smtp.core.DataLineMessageHookHandler
All Implemented Interfaces:
ExtensibleHandler, ProtocolHandler, DataLineFilter

public class DataLineMessageHookHandler
extends Object
implements DataLineFilter, ExtensibleHandler

This class handles the actual calling of the MessageHook implementations to queue the message. If no MessageHook return OK or DECLINED it will write back an error to the client to report the problem while trying to queue the message


Constructor Summary
DataLineMessageHookHandler()
           
 
Method Summary
protected  void checkMessageHookCount(List messageHandlers)
           
 List<Class<?>> getMarkerInterfaces()
           
 Response onLine(SMTPSession session, byte[] line, LineHandler<SMTPSession> next)
          Handle line processing
protected  Response processExtensions(SMTPSession session, MailEnvelopeImpl mail)
           
 void wireExtensions(Class interfaceName, List extension)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataLineMessageHookHandler

public DataLineMessageHookHandler()
Method Detail

onLine

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

Specified by:
onLine in interface DataLineFilter
See Also:
DataLineFilter.onLine(SMTPSession, byte[], LineHandler)

processExtensions

protected Response processExtensions(SMTPSession session,
                                     MailEnvelopeImpl mail)
Parameters:
session -

wireExtensions

public void wireExtensions(Class interfaceName,
                           List extension)
                    throws WiringException
Specified by:
wireExtensions in interface ExtensibleHandler
Throws:
WiringException
See Also:
ExtensibleHandler.wireExtensions(java.lang.Class, java.util.List)

checkMessageHookCount

protected void checkMessageHookCount(List messageHandlers)
                              throws WiringException
Throws:
WiringException

getMarkerInterfaces

public List<Class<?>> getMarkerInterfaces()
Specified by:
getMarkerInterfaces in interface ExtensibleHandler
See Also:
ExtensibleHandler.getMarkerInterfaces()


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