org.abstracthorizon.mercury.smtp.logging
Class SMTPSPAMAccessLogConnectionHandler

java.lang.Object
  extended by org.abstracthorizon.danube.support.logging.AccessLogConnectionHandler
      extended by org.abstracthorizon.mercury.smtp.logging.SMTPSPAMAccessLogConnectionHandler
All Implemented Interfaces:
org.abstracthorizon.danube.connection.ConnectionHandler

public class SMTPSPAMAccessLogConnectionHandler
extends org.abstracthorizon.danube.support.logging.AccessLogConnectionHandler

Utility class that adds new pattern codes to existing in AccessLogConnectionHandler

Those are added through SMTPSPAMPatternProcessor

Also it sets default pattern to "%y %S %R %h localhost SMTP - %r %b"

Author:
Daniel Sendula

Nested Class Summary
 
Nested classes/interfaces inherited from class org.abstracthorizon.danube.support.logging.AccessLogConnectionHandler
org.abstracthorizon.danube.support.logging.AccessLogConnectionHandler.DateWrapper
 
Field Summary
 
Fields inherited from class org.abstracthorizon.danube.support.logging.AccessLogConnectionHandler
argumentNumber, logger, logPatternString, selectedProcessors
 
Constructor Summary
SMTPSPAMAccessLogConnectionHandler()
           
 
Method Summary
protected  void addPredefinedProcessors(List<String> providerClasses)
          Adds lists of predefined processors to the lists of provider classes.
protected  String createLogLine(org.abstracthorizon.danube.connection.Connection connection, long start)
           
protected  String getDefaultLogPattern()
          Returns default log pattern
 
Methods inherited from class org.abstracthorizon.danube.support.logging.AccessLogConnectionHandler
getConnectionHandler, getCustomProcessors, getLogFileRotator, getLogPattern, handleConnection, outputLogLine, setConnectionHandler, setCustomProcessors, setLogFileRotator, setLogPattern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SMTPSPAMAccessLogConnectionHandler

public SMTPSPAMAccessLogConnectionHandler()
Method Detail

addPredefinedProcessors

protected void addPredefinedProcessors(List<String> providerClasses)

Adds lists of predefined processors to the lists of provider classes.

This method adds following:

Also it calls super method AccessLogConnectionHandler.addPredefinedProcessors(List)

Overrides:
addPredefinedProcessors in class org.abstracthorizon.danube.support.logging.AccessLogConnectionHandler
Parameters:
providerClasses - list of provider classes

getDefaultLogPattern

protected String getDefaultLogPattern()
Returns default log pattern

Overrides:
getDefaultLogPattern in class org.abstracthorizon.danube.support.logging.AccessLogConnectionHandler
Returns:
default log pattern

createLogLine

protected String createLogLine(org.abstracthorizon.danube.connection.Connection connection,
                               long start)
Overrides:
createLogLine in class org.abstracthorizon.danube.support.logging.AccessLogConnectionHandler


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