info.magnolia.module.templating
Class RenderingFilter

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

public class RenderingFilter
extends AbstractMgnlFilter

Filter responsible for rendering the current aggregation state, by delegating to the appropriate TemplateRenderer or by serving binary content.

Version:
$Revision: 41137 $ ($Author: gjoseph $)
Author:
Philipp Bracher

Field Summary
protected  RenderingEngine renderingEngine
           
 
Constructor Summary
RenderingFilter()
           
 
Method Summary
 void doFilter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain)
           
protected  void handleResourceRequest(AggregationState aggregationState, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Get the requested resource and copy it to the ServletOutputStream, bit by bit.
protected  void render(Content content, String templateName, javax.servlet.http.HttpServletResponse response)
           
 
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

renderingEngine

protected RenderingEngine renderingEngine
Constructor Detail

RenderingFilter

public RenderingFilter()
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

render

protected void render(Content content,
                      String templateName,
                      javax.servlet.http.HttpServletResponse response)
               throws IOException,
                      RenderException
Throws:
IOException
RenderException

handleResourceRequest

protected void handleResourceRequest(AggregationState aggregationState,
                                     javax.servlet.http.HttpServletRequest request,
                                     javax.servlet.http.HttpServletResponse response)
                              throws IOException
Get the requested resource and copy it to the ServletOutputStream, bit by bit.

Parameters:
request - HttpServletRequest as given by the servlet container
response - HttpServletResponse as given by the servlet container
Throws:
IOException - standard servlet exception


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