org.abstracthorizon.mercury.smtp.logging
Class SMTPSPAMAccessLogConnectionHandler
java.lang.Object
org.abstracthorizon.danube.support.logging.AccessLogConnectionHandler
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 classes/interfaces inherited from class org.abstracthorizon.danube.support.logging.AccessLogConnectionHandler |
org.abstracthorizon.danube.support.logging.AccessLogConnectionHandler.DateWrapper |
Fields inherited from class org.abstracthorizon.danube.support.logging.AccessLogConnectionHandler |
argumentNumber, logger, logPatternString, selectedProcessors |
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 |
SMTPSPAMAccessLogConnectionHandler
public SMTPSPAMAccessLogConnectionHandler()
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.