|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.abstracthorizon.mercury.smtp.logging.SMTPSPAMPatternProcessor
public class SMTPSPAMPatternProcessor
This processor adds following pattern codes:
%b
- bytes sent excluding headers or "-" if nothing%B
- bytes sent excluding headers or 0 if nothing%E
- helo/ehlo string%r
- return code
%S
- source mailbox (MAIL FROM directive)
%R
- recipients
Field Summary | |
---|---|
protected int |
bytesSent0Index
Cached index of bytes sent with zero |
protected int |
bytesSentIndex
Cached index of bytes sent |
protected int |
ehloIndex
Cached index of ehlo source domain string |
protected int |
recipientsIndex
Cached index of recipients |
protected int |
returnCodeIndex
Cached index of return code |
protected int |
sourceIndex
Cached index of source |
Constructor Summary | |
---|---|
SMTPSPAMPatternProcessor()
Constructor |
Method Summary | |
---|---|
int |
init(int index,
StringBuffer message)
Checks if parameters are present and if so replaces it and caches their indexes |
void |
process(org.abstracthorizon.danube.connection.Connection connection,
Object[] array)
Adds parameter values to cached index positions |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int bytesSentIndex
protected int bytesSent0Index
protected int ehloIndex
protected int returnCodeIndex
protected int sourceIndex
protected int recipientsIndex
Constructor Detail |
---|
public SMTPSPAMPatternProcessor()
Method Detail |
---|
public int init(int index, StringBuffer message)
init
in interface org.abstracthorizon.danube.support.logging.patternsupport.PatternProcessor
index
- next index to be usedmessage
- message to be alteredpublic void process(org.abstracthorizon.danube.connection.Connection connection, Object[] array)
process
in interface org.abstracthorizon.danube.support.logging.patternsupport.PatternProcessor
connection
- connectionarray
- array
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |