edu.internet2.middleware.shibboleth.common.log
Class SLF4JMDCCleanupFilter

java.lang.Object
  extended by edu.internet2.middleware.shibboleth.common.log.SLF4JMDCCleanupFilter
All Implemented Interfaces:
javax.servlet.Filter

public class SLF4JMDCCleanupFilter
extends Object
implements javax.servlet.Filter

A Servlet filter which clears all the MDC state that has been accumulated during the processing of a request. It should be installed as near as possible to the beginning of the effective filter chain - and in particular prior to any filters which make use of MDC in their own logging - so that this filter will be last when the request stack unwinds.


Constructor Summary
SLF4JMDCCleanupFilter()
           
 
Method Summary
 void destroy()
          
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
          
 void init(javax.servlet.FilterConfig filterConfig)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SLF4JMDCCleanupFilter

public SLF4JMDCCleanupFilter()
Method Detail

destroy

public void destroy()

Specified by:
destroy in interface javax.servlet.Filter

init

public void init(javax.servlet.FilterConfig filterConfig)
          throws javax.servlet.ServletException

Specified by:
init in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException

doFilter

public void doFilter(javax.servlet.ServletRequest request,
                     javax.servlet.ServletResponse response,
                     javax.servlet.FilterChain chain)
              throws IOException,
                     javax.servlet.ServletException

Specified by:
doFilter in interface javax.servlet.Filter
Throws:
IOException
javax.servlet.ServletException


Copyright © 1999-2012. All Rights Reserved.