KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > magnolia > cms > beans > runtime > TemplateRenderer


1 /**
2  *
3  * Magnolia and its source-code is licensed under the LGPL.
4  * You may copy, adapt, and redistribute this file for commercial or non-commercial use.
5  * When copying, adapting, or redistributing this document in keeping with the guidelines above,
6  * you are required to provide proper attribution to obinary.
7  * If you reproduce or distribute the document without making any substantive modifications to its content,
8  * please use the following attribution line:
9  *
10  * Copyright 1993-2006 obinary Ltd. (http://www.obinary.com) All rights reserved.
11  *
12  */

13 package info.magnolia.cms.beans.runtime;
14
15 import info.magnolia.cms.beans.config.Template;
16
17 import java.io.IOException JavaDoc;
18
19 import javax.servlet.ServletException JavaDoc;
20 import javax.servlet.http.HttpServletRequest JavaDoc;
21 import javax.servlet.http.HttpServletResponse JavaDoc;
22
23
24 /**
25  * A Template Rendered implementation is responsible for generating the actual response from request data and a
26  * template. A typical jsp implementation will simply forward the request to the jsp through request dispatcher, but
27  * anybody is free to bind a specific implementation to a template type.
28  * @author Fabrizio Giustina
29  * @version $Revision: 6341 $ ($Author: philipp $)
30  */

31 public interface TemplateRenderer {
32
33     /**
34      * Generates the actual output using the selected template
35      * @param template template to be rendered
36      * @param request HttpServletRequest
37      * @param response HttpServletResponse
38      * @throws IOException exception occurred while writing to the output stream
39      * @throws ServletException generic servlet exception
40      */

41     void renderTemplate(Template template, HttpServletRequest JavaDoc request, HttpServletResponse JavaDoc response)
42         throws IOException JavaDoc, ServletException JavaDoc;
43 }
44
Popular Tags