info.magnolia.cms.filters
Class ContextFilter
java.lang.Object
info.magnolia.cms.filters.AbstractMgnlFilter
info.magnolia.cms.filters.ContextFilter
- All Implemented Interfaces:
- MgnlFilter, javax.servlet.Filter
public class ContextFilter
- extends AbstractMgnlFilter
This class initializes the current context and configures MDC logging.
- Version:
- $Revision$ ($Author$)
- Author:
- Philipp Bracher
Field Summary |
static org.slf4j.Logger |
log
|
Method Summary |
void |
doFilter(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain)
|
void |
init(javax.servlet.FilterConfig filterConfig)
|
Methods inherited from class info.magnolia.cms.filters.AbstractMgnlFilter |
acceptsEncoding, acceptsGzipEncoding, addAndVerifyHeader, addBypass, addMapping, bypasses, destroy, doFilter, getBypasses, getDispatching, getMapping, getMappings, getName, headerContains, isEnabled, mapsTo, matches, matchesDispatching, setDispatching, setEnabled, setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
public static org.slf4j.Logger log
ContextFilter
public ContextFilter(WebContextFactory webContextFactory)
init
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
- Specified by:
init
in interface javax.servlet.Filter
- Overrides:
init
in class AbstractMgnlFilter
- Throws:
javax.servlet.ServletException
doFilter
public void doFilter(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
- Specified by:
doFilter
in class AbstractMgnlFilter
- Throws:
IOException
javax.servlet.ServletException
Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.