info.magnolia.cms.filters
Class InterceptFilter
java.lang.Object
info.magnolia.cms.filters.AbstractMgnlFilter
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 java.lang.String |
INTERCEPT
Request parameter: the INTERCEPT holds the name of an administrative action to perform. |
static java.lang.String |
MGNL_PREVIEW_ATTRIBUTE
Deprecated. added in 4.0 for backward compatibility but should not be public. |
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 |
INTERCEPT
public static final java.lang.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 java.lang.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
InterceptFilter
public InterceptFilter()
doFilter
public void doFilter(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain)
throws java.io.IOException,
javax.servlet.ServletException
- Specified by:
doFilter
in class AbstractMgnlFilter
- Throws:
java.io.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-2011 Magnolia International Ltd.. All Rights Reserved.