info.magnolia.cms.filters
Class FilterDecorator

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

public class FilterDecorator
extends AbstractMgnlFilter

Used to decorate a normal (not magnolia) filter.

Version:
$Id: FilterDecorator.java 45164 2011-05-17 08:08:55Z had $
Author:
philipp

Nested Class Summary
static class FilterDecorator.CustomFilterConfig
          Exposes the parameters configured using content2bean as FilterConfig to the servlet API.
 
Constructor Summary
FilterDecorator()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain)
           
 Map getConfig()
           
 javax.servlet.Filter getDecoratedFilter()
           
 void init(javax.servlet.FilterConfig filterConfig)
           
 void setConfig(Map config)
           
 void setDecoratedFilter(javax.servlet.Filter decoratedFilter)
           
 
Methods inherited from class info.magnolia.cms.filters.AbstractMgnlFilter
acceptsEncoding, acceptsGzipEncoding, addAndVerifyHeader, addBypass, addMapping, bypasses, doFilter, getBypasses, getDispatching, getMapping, getMappings, getName, 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
 

Constructor Detail

FilterDecorator

public FilterDecorator()
Method Detail

init

public void init(javax.servlet.FilterConfig filterConfig)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Filter
Overrides:
init in class AbstractMgnlFilter
Throws:
javax.servlet.ServletException

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

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Filter
Overrides:
destroy in class AbstractMgnlFilter

getConfig

public Map getConfig()

setConfig

public void setConfig(Map config)

getDecoratedFilter

public javax.servlet.Filter getDecoratedFilter()

setDecoratedFilter

public void setDecoratedFilter(javax.servlet.Filter decoratedFilter)


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