info.magnolia.cms.filters
Class ServletDispatchingFilter
java.lang.Object
info.magnolia.cms.filters.AbstractMgnlFilter
info.magnolia.cms.filters.ServletDispatchingFilter
- All Implemented Interfaces:
- MgnlFilter, javax.servlet.Filter
public class ServletDispatchingFilter
- extends AbstractMgnlFilter
A filter that dispatches requests to a wrapped servlet.
TODO : cache matching URIs ?
- Version:
- $Id$
- Author:
- vsteller
Methods inherited from class info.magnolia.cms.filters.AbstractMgnlFilter |
acceptsEncoding, acceptsGzipEncoding, addAndVerifyHeader, addBypass, addMapping, bypasses, doFilter, getBypasses, getDispatching, getMapping, getMappings, headerContains, 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 |
ServletDispatchingFilter
public ServletDispatchingFilter()
getName
public String getName()
- Specified by:
getName
in interface MgnlFilter
- Overrides:
getName
in class AbstractMgnlFilter
init
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
- Initializes the servlet and its mappings. ServletConfig is wrapped to take init parameters into account.
- Specified by:
init
in interface javax.servlet.Filter
- Overrides:
init
in class AbstractMgnlFilter
- Throws:
javax.servlet.ServletException
destroy
public void destroy()
- Delegates the destroy() call to the wrapper servlet, then to this filter itself.
- Specified by:
destroy
in interface javax.servlet.Filter
- Overrides:
destroy
in class AbstractMgnlFilter
doFilter
public void doFilter(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
- Dispatches the request to the servlet if not already bypassed. The request is wrapped for properly setting the
pathInfo.
- Specified by:
doFilter
in class AbstractMgnlFilter
- Throws:
IOException
javax.servlet.ServletException
getServletName
public String getServletName()
setServletName
public void setServletName(String servletName)
getServletClass
public String getServletClass()
setServletClass
public void setServletClass(String servletClass)
getParameters
public Map getParameters()
setParameters
public void setParameters(Map parameters)
getComment
public String getComment()
setComment
public void setComment(String comment)
Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.