info.magnolia.module.templating.renderers
Class AbstractTemplateRenderer

java.lang.Object
  extended by info.magnolia.module.templating.AbstractRenderer
      extended by info.magnolia.module.templating.renderers.AbstractTemplateRenderer
All Implemented Interfaces:
RenderingModelBasedRenderer, TemplateRenderer
Direct Known Subclasses:
FreemarkerTemplateRenderer, JspTemplateRenderer, PlainTextTemplateRenderer, ServletTemplateRenderer

public abstract class AbstractTemplateRenderer
extends AbstractRenderer
implements TemplateRenderer

Base class for implementing TemplateRenderers.

Version:
$Id: AbstractTemplateRenderer.java 41137 2011-01-06 18:19:25Z gjoseph $
Author:
pbracher

Constructor Summary
AbstractTemplateRenderer()
           
 
Method Summary
 void renderTemplate(Content content, Template template, Writer out)
          Generates the actual output using the selected template.
 void renderTemplate(Template template, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Deprecated. since 4.0
 
Methods inherited from class info.magnolia.module.templating.AbstractRenderer
determineTemplatePath, getAggregationStateSafely, getAggrigationStateSafely, getMagnoliaTemplatingUtilities, getMainContentSafely, getPageAttributeName, newContext, newModel, onRender, render, restoreContext, saveAttribute, saveContextState, setContextAttribute, setupContext, wrapNodeForModel, wrapNodeForTemplate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTemplateRenderer

public AbstractTemplateRenderer()
Method Detail

renderTemplate

public void renderTemplate(Template template,
                           javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response)
                    throws IOException,
                           javax.servlet.ServletException
Deprecated. since 4.0

Specified by:
renderTemplate in interface TemplateRenderer
Throws:
IOException
javax.servlet.ServletException
See Also:
TemplateRenderer.renderTemplate(info.magnolia.cms.core.Content, Template, java.io.Writer)

renderTemplate

public void renderTemplate(Content content,
                           Template template,
                           Writer out)
                    throws RenderException,
                           IOException
Description copied from interface: TemplateRenderer
Generates the actual output using the selected template.

Specified by:
renderTemplate in interface TemplateRenderer
Throws:
RenderException
IOException


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