public abstract class AbstractAddHeadersFilter extends SeparatingDataLineFilter
SeparatingDataLineFilter
implementations that add headers to a messageModifier and Type | Class and Description |
---|---|
static class |
AbstractAddHeadersFilter.Header |
Constructor and Description |
---|
AbstractAddHeadersFilter() |
Modifier and Type | Method and Description |
---|---|
protected abstract org.apache.james.protocols.smtp.core.AbstractAddHeadersFilter.Location |
getLocation()
Return the
Location to add the headers in |
protected abstract Collection<AbstractAddHeadersFilter.Header> |
headers(SMTPSession session)
Return the
AbstractAddHeadersFilter.Header 's to operate on |
protected Response |
onHeadersLine(SMTPSession session,
ByteBuffer line,
LineHandler<SMTPSession> next)
Gets called for each received line until the CRLF sequence was received.
|
protected Response |
onSeparatorLine(SMTPSession session,
ByteBuffer line,
LineHandler<SMTPSession> next)
Gets called when the separating line is received.
|
onBodyLine, onLine
protected abstract org.apache.james.protocols.smtp.core.AbstractAddHeadersFilter.Location getLocation()
Location
to add the headers inprotected Response onSeparatorLine(SMTPSession session, ByteBuffer line, LineHandler<SMTPSession> next)
SeparatingDataLineFilter
LineHandler.onLine(org.apache.james.protocols.api.ProtocolSession, ByteBuffer)
but subclasses should override it if needed.onSeparatorLine
in class SeparatingDataLineFilter
protected Response onHeadersLine(SMTPSession session, ByteBuffer line, LineHandler<SMTPSession> next)
SeparatingDataLineFilter
LineHandler.onLine(org.apache.james.protocols.api.ProtocolSession, ByteBuffer)
but subclasses should override it if needed.onHeadersLine
in class SeparatingDataLineFilter
protected abstract Collection<AbstractAddHeadersFilter.Header> headers(SMTPSession session)
AbstractAddHeadersFilter.Header
's to operate onCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.