info.magnolia.module.samples.filters
Class SampleFilter
java.lang.Object
info.magnolia.cms.filters.AbstractMgnlFilter
info.magnolia.module.samples.filters.SampleFilter
- All Implemented Interfaces:
- MgnlFilter, javax.servlet.Filter
public class SampleFilter
- extends AbstractMgnlFilter
This is a very simple filter bootstrapped at setup using the file mgnl-bootstrap/samples/config.server.filters.sample.xml
(server/filters/sample)
.
it defines bypass /.magnolia/ meaning the filter will only be executed for non admin pages
- Author:
- tmiyar
Method Summary |
void |
doFilter(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
javax.servlet.FilterChain chain)
|
Methods inherited from class info.magnolia.cms.filters.AbstractMgnlFilter |
acceptsEncoding, acceptsGzipEncoding, addAndVerifyHeader, addBypass, addMapping, bypasses, destroy, doFilter, getBypasses, getDispatching, getMapping, getMappings, getName, headerContains, init, 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 |
SampleFilter
public SampleFilter()
doFilter
public void doFilter(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
- Specified by:
doFilter
in class AbstractMgnlFilter
- Throws:
IOException
javax.servlet.ServletException
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.