org.mycore.common.xml
Class MCRURIResolverFilter
java.lang.Object
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)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
uriList
static ThreadLocal<List> uriList
MCRURIResolverFilter
public MCRURIResolverFilter()
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