org.abstracthorizon.mercury.smtp.logging
Class SMTPSPAMPatternProcessor

java.lang.Object
  extended by org.abstracthorizon.mercury.smtp.logging.SMTPSPAMPatternProcessor
All Implemented Interfaces:
org.abstracthorizon.danube.support.logging.patternsupport.PatternProcessor

public class SMTPSPAMPatternProcessor
extends Object
implements org.abstracthorizon.danube.support.logging.patternsupport.PatternProcessor

This processor adds following pattern codes:

Author:
Daniel Sendula

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

bytesSentIndex

protected int bytesSentIndex
Cached index of bytes sent


bytesSent0Index

protected int bytesSent0Index
Cached index of bytes sent with zero


ehloIndex

protected int ehloIndex
Cached index of ehlo source domain string


returnCodeIndex

protected int returnCodeIndex
Cached index of return code


sourceIndex

protected int sourceIndex
Cached index of source


recipientsIndex

protected int recipientsIndex
Cached index of recipients

Constructor Detail

SMTPSPAMPatternProcessor

public SMTPSPAMPatternProcessor()
Constructor

Method Detail

init

public int init(int index,
                StringBuffer message)
Checks if parameters are present and if so replaces it and caches their indexes

Specified by:
init in interface org.abstracthorizon.danube.support.logging.patternsupport.PatternProcessor
Parameters:
index - next index to be used
message - message to be altered

process

public void process(org.abstracthorizon.danube.connection.Connection connection,
                    Object[] array)
Adds parameter values to cached index positions

Specified by:
process in interface org.abstracthorizon.danube.support.logging.patternsupport.PatternProcessor
Parameters:
connection - connection
array - array


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.