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 messageConstructor 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)
DataLineFilter
onLine
in interface DataLineFilter
protected Response processExtensions(SMTPSession session, MailEnvelopeImpl mail)
session
- public void wireExtensions(Class interfaceName, List extension) throws WiringException
ExtensibleHandler
wireExtensions
in interface ExtensibleHandler
extension
- a list of objects implementing the marker interfaceWiringException
ExtensibleHandler.wireExtensions(java.lang.Class, java.util.List)
protected void checkMessageHookCount(List<?> messageHandlers) throws WiringException
WiringException
public List<Class<?>> getMarkerInterfaces()
ExtensibleHandler
getMarkerInterfaces
in interface ExtensibleHandler
ExtensibleHandler.getMarkerInterfaces()
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.