public abstract class SeparatingDataLineFilter extends Object implements DataLineFilter
onHeadersLine(SMTPSession, ByteBuffer, LineHandler)
onSeparatorLine(SMTPSession, ByteBuffer, LineHandler)
onBodyLine(SMTPSession, ByteBuffer, LineHandler)
Constructor and Description |
---|
SeparatingDataLineFilter() |
Modifier and Type | Method and Description |
---|---|
protected Response |
onBodyLine(SMTPSession session,
ByteBuffer line,
LineHandler<SMTPSession> next)
Gets called for each received line after the CRLF sequence was received.
|
protected Response |
onHeadersLine(SMTPSession session,
ByteBuffer line,
LineHandler<SMTPSession> next)
Gets called for each received line until the CRLF sequence was received.
|
Response |
onLine(SMTPSession session,
ByteBuffer line,
LineHandler<SMTPSession> next)
Handle line processing
|
protected Response |
onSeparatorLine(SMTPSession session,
ByteBuffer line,
LineHandler<SMTPSession> next)
Gets called when the separating line is received.
|
public final Response onLine(SMTPSession session, ByteBuffer line, LineHandler<SMTPSession> next)
DataLineFilter
onLine
in interface DataLineFilter
protected Response onSeparatorLine(SMTPSession session, ByteBuffer line, LineHandler<SMTPSession> next)
LineHandler.onLine(org.apache.james.protocols.api.ProtocolSession, ByteBuffer)
but subclasses should override it if needed.session
- line
- next
- protected Response onHeadersLine(SMTPSession session, ByteBuffer line, LineHandler<SMTPSession> next)
LineHandler.onLine(org.apache.james.protocols.api.ProtocolSession, ByteBuffer)
but subclasses should override it if needed.session
- line
- next
- protected Response onBodyLine(SMTPSession session, ByteBuffer line, LineHandler<SMTPSession> next)
LineHandler.onLine(org.apache.james.protocols.api.ProtocolSession, ByteBuffer)
but subclasses should override it if needed.session
- line
- next
- Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.