org.apache.james.protocols.smtp.core.log
Class HookResultLogger
java.lang.Object
org.apache.james.protocols.smtp.core.log.HookResultLogger
- All Implemented Interfaces:
- ProtocolHandler, Hook, HookResultHook
public class HookResultLogger
- extends Object
- implements HookResultHook
Log the HookResult. If HookReturnCode.DENY, HookReturnCode.DENYSOFT or HookReturnCode.DISCONNECT was used it will get
logged to INFO. If not to DEBUG
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HookResultLogger
public HookResultLogger()
onHookResult
public HookResult onHookResult(SMTPSession session,
HookResult hResult,
long executionTime,
Hook hook)
- Specified by:
onHookResult in interface HookResultHook
Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.