info.magnolia.cms.filters
Class MgnlMainFilter

java.lang.Object
  extended by 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

Field Summary
static String SERVER_FILTERS
           
 
Constructor Summary
MgnlMainFilter()
           
 
Method Summary
protected  void createRootFilter()
           
protected  MgnlFilter createSystemUIFilter()
          Initializes the required filter(s) if we need to go through SystemUI initialization screens.
 void destroy()
           
 void doFilter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain)
           
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
           
static MgnlMainFilter getInstance()
           
 MgnlFilter getRootFilter()
           
 void init(javax.servlet.FilterConfig filterConfig)
           
 void initRootFilter()
          The first time called by the main filter.
protected  boolean isSystemUIMode()
          Checks if Magnolia is ready to operate or if we need to go through SystemUI initialization screens.
 void reset()
           
protected  void startObservation()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVER_FILTERS

public static final String SERVER_FILTERS
See Also:
Constant Field Values
Constructor Detail

MgnlMainFilter

public MgnlMainFilter()
Method Detail

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.