com.atlassian.confluence.util
Class LoggingContextInterceptor

java.lang.Object
  extended by com.atlassian.confluence.util.LoggingContextInterceptor
All Implemented Interfaces:
com.opensymphony.xwork.interceptor.Interceptor

public class LoggingContextInterceptor
extends java.lang.Object
implements com.opensymphony.xwork.interceptor.Interceptor

XWork interceptor that adds some relevant XWork context to the Log4J Mapped Diagnostic Context

See Also:
PatternLayoutWithContext, MDC

Field Summary
protected static org.apache.log4j.Logger log
           
 
Constructor Summary
LoggingContextInterceptor()
           
 
Method Summary
protected  void buildLoggingContext(com.opensymphony.xwork.ActionInvocation actionInvocation)
           
protected  void cleanLoggingContext()
           
 void destroy()
           
 void init()
           
 java.lang.String intercept(com.opensymphony.xwork.ActionInvocation actionInvocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.log4j.Logger log
Constructor Detail

LoggingContextInterceptor

public LoggingContextInterceptor()
Method Detail

destroy

public void destroy()
Specified by:
destroy in interface com.opensymphony.xwork.interceptor.Interceptor

init

public void init()
Specified by:
init in interface com.opensymphony.xwork.interceptor.Interceptor

intercept

public java.lang.String intercept(com.opensymphony.xwork.ActionInvocation actionInvocation)
                           throws java.lang.Exception
Specified by:
intercept in interface com.opensymphony.xwork.interceptor.Interceptor
Throws:
java.lang.Exception

buildLoggingContext

protected void buildLoggingContext(com.opensymphony.xwork.ActionInvocation actionInvocation)

cleanLoggingContext

protected void cleanLoggingContext()


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.