info.magnolia.cms.filters
Class MgnlMainFilter
java.lang.Object
info.magnolia.cms.filters.MgnlMainFilter
- All Implemented Interfaces:
- javax.servlet.Filter
public class MgnlMainFilter
- extends Object
- implements javax.servlet.Filter
A single filter which in turn executes a chain of other filters not configured in web.xml. This filters delegates to
one single filter which is either the filter chain configured in the config repository or the primitive system UI when
a system/module installation or update is needed.
- Version:
- $Revision: 41137 $ ($Author: gjoseph $)
- Author:
- fgiust
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERVER_FILTERS
public static final String SERVER_FILTERS
- See Also:
- Constant Field Values
MgnlMainFilter
public MgnlMainFilter()
doFilter
public void doFilter(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
init
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
- Specified by:
init
in interface javax.servlet.Filter
- Throws:
javax.servlet.ServletException
startObservation
protected void startObservation()
createRootFilter
protected void createRootFilter()
createSystemUIFilter
protected MgnlFilter createSystemUIFilter()
- Initializes the required filter(s) if we need to go through
SystemUI initialization screens.
isSystemUIMode
protected boolean isSystemUIMode()
- Checks if Magnolia is ready to operate or if we need to go through
SystemUI initialization screens.
initRootFilter
public void initRootFilter()
- The first time called by the main filter.
destroy
public void destroy()
- Specified by:
destroy
in interface javax.servlet.Filter
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
reset
public void reset()
getInstance
public static MgnlMainFilter getInstance()
getRootFilter
public MgnlFilter getRootFilter()
Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.