public class DataLineMessageHookHandler extends Object implements DataLineFilter, ExtensibleHandler
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 and Description |
|---|
DataLineMessageHookHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkMessageHookCount(List<?> messageHandlers) |
List<Class<?>> |
getMarkerInterfaces()
Return a List of interfaces of plugins that will
extend this.
|
Response |
onLine(SMTPSession session,
ByteBuffer line,
LineHandler<SMTPSession> next)
Handle line processing
|
protected Response |
processExtensions(SMTPSession session,
MailEnvelopeImpl mail) |
void |
wireExtensions(Class interfaceName,
List extension)
Method called during initialization after all the handlers have been declared
in the ProtocolHandlerChain.
|
public Response onLine(SMTPSession session, ByteBuffer line, LineHandler<SMTPSession> next)
DataLineFilteronLine in interface DataLineFilterprotected Response processExtensions(SMTPSession session, MailEnvelopeImpl mail)
session - public void wireExtensions(Class interfaceName, List extension) throws WiringException
ExtensibleHandlerwireExtensions in interface ExtensibleHandlerextension - a list of objects implementing the marker interfaceWiringExceptionExtensibleHandler.wireExtensions(java.lang.Class, java.util.List)protected void checkMessageHookCount(List<?> messageHandlers) throws WiringException
WiringExceptionpublic List<Class<?>> getMarkerInterfaces()
ExtensibleHandlergetMarkerInterfaces in interface ExtensibleHandlerExtensibleHandler.getMarkerInterfaces()Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.