info.magnolia.cms.filters
Class InterceptFilter

java.lang.Object
  extended by info.magnolia.cms.filters.AbstractMgnlFilter
      extended by info.magnolia.cms.filters.InterceptFilter
All Implemented Interfaces:
MgnlFilter, javax.servlet.Filter

public class InterceptFilter
extends AbstractMgnlFilter

Handle intercepted administrative requests.

Version:
$Id: InterceptFilter.java 41137 2011-01-06 18:19:25Z gjoseph $
Author:
Fabrizio Giustina

Field Summary
static String INTERCEPT
          Request parameter: the INTERCEPT holds the name of an administrative action to perform.
static String MGNL_PREVIEW_ATTRIBUTE
          Deprecated. added in 4.0 for backward compatibility but should not be public.
 
Constructor Summary
InterceptFilter()
           
 
Method Summary
 void doFilter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain)
           
 void intercept(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Request and Response here is same as received by the original page so it includes all post/get data.
protected  boolean previewMode()
           
 
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
 

Field Detail

INTERCEPT

public static final String INTERCEPT
Request parameter: the INTERCEPT holds the name of an administrative action to perform.

See Also:
Constant Field Values

MGNL_PREVIEW_ATTRIBUTE

public static final String MGNL_PREVIEW_ATTRIBUTE
Deprecated. added in 4.0 for backward compatibility but should not be public.
Attribute used for enabling the preview mode.

See Also:
Constant Field Values
Constructor Detail

InterceptFilter

public InterceptFilter()
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
Specified by:
doFilter in class AbstractMgnlFilter
Throws:
IOException
javax.servlet.ServletException

previewMode

protected boolean previewMode()

intercept

public void intercept(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
Request and Response here is same as received by the original page so it includes all post/get data. Sub action could be called from here once this action finishes, it will continue loading the requested page.



Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.