org.mycore.common.xml
Class MCRURIResolverFilter

java.lang.Object
  extended by org.mycore.common.xml.MCRURIResolverFilter
All Implemented Interfaces:
Filter

public class MCRURIResolverFilter
extends Object
implements Filter

Servlet Filter for adding debug information to servlet output.

Author:
Thomas Scheffler (yagee)

Field Summary
(package private) static ThreadLocal<List> uriList
           
 
Constructor Summary
MCRURIResolverFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain)
          adds debug information from MCRURIResolver to Servlet output.
 void init(FilterConfig arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uriList

static ThreadLocal<List> uriList
Constructor Detail

MCRURIResolverFilter

public MCRURIResolverFilter()
Method Detail

doFilter

public void doFilter(ServletRequest request,
                     ServletResponse response,
                     FilterChain filterChain)
              throws IOException,
                     ServletException
adds debug information from MCRURIResolver to Servlet output. The information includes all URIs resolved by MCRURIResolver by the current request. The filter is triggered by the log4j statement of the MCRURIResolver. To switch it on set the logger to DEBUG level.

Specified by:
doFilter in interface Filter
Throws:
IOException
ServletException
See Also:
Filter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)

destroy

public void destroy()
Specified by:
destroy in interface Filter

init

public void init(FilterConfig arg0)
          throws ServletException
Specified by:
init in interface Filter
Throws:
ServletException