org.apache.james.protocols.smtp.core.log
Class HookResultLogger

java.lang.Object
  extended by 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


Constructor Summary
HookResultLogger()
           
 
Method Summary
 HookResult onHookResult(SMTPSession session, HookResult hResult, long executionTime, Hook hook)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HookResultLogger

public HookResultLogger()
Method Detail

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.