info.magnolia.module.templating
Interface TemplateRenderer

All Known Subinterfaces:
TemplateRenderer
All Known Implementing Classes:
AbstractTemplateRenderer, FreemarkerTemplateRenderer, JspTemplateRenderer, PlainTextTemplateRenderer, ServletTemplateRenderer

public interface TemplateRenderer

A TemplateRenderer implementation is responsible for generating the actual response from request data and a template. A typical jsp implementation will simply forward the request to the jsp through request dispatcher, but anybody is free to bind a specific implementation to a template type.

Version:
$Revision: 41137 $ ($Author: gjoseph $)
Author:
Fabrizio Giustina

Method Summary
 void renderTemplate(Content content, Template template, java.io.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
 

Method Detail

renderTemplate

void renderTemplate(Content content,
                    Template template,
                    java.io.Writer out)
                    throws RenderException,
                           java.io.IOException
Generates the actual output using the selected template.

Throws:
RenderException
java.io.IOException

renderTemplate

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

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


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