org.openmobileis.embedded.webserver.templates.Freemarkerv1TemplateDelegate Class Reference

Inheritance diagram for org.openmobileis.embedded.webserver.templates.Freemarkerv1TemplateDelegate:

org.openmobileis.embedded.webserver.templates.TemplateManagerDelegate

List of all members.


Detailed Description

Title: OpenMobileIS project source
Description: Manage pattern (templates) for HTML forms used by the PDA web server.

It is based on singleton model. The path gives the location of the patterns (should terminate by a file separator). The API getHTMLFile (patternName, variables) allow to get the HTML file from a pattern and a list of variables. The default implementation use the freemarker template manager. See freemarker for more information. Inside the pattern, the variables are tagged by ${}.

Author:
Philippe Delrieu
Since:
JDK 1.1
Version:
1.0.

Definition at line 57 of file Freemarkerv1TemplateDelegate.java.


Public Member Functions

void init ()
 init template and cache management.
TemplateModelRoot getTemplateModelRoot ()
 initialize template structure for this request.
Template getTemplate (String relatifPath)
 return the template with specified relative name.

Member Function Documentation

void org.openmobileis.embedded.webserver.templates.Freemarkerv1TemplateDelegate.init (  ) 

init template and cache management.

cache template is use to detect cache update during synchronization

Implements org.openmobileis.embedded.webserver.templates.TemplateManagerDelegate.

Definition at line 72 of file Freemarkerv1TemplateDelegate.java.

References org.openmobileis.common.util.collection.Array.add().

Template org.openmobileis.embedded.webserver.templates.Freemarkerv1TemplateDelegate.getTemplate ( String  relatifPath  ) 

return the template with specified relative name.

The path to find the temlpate is template install directory(intalpath/cn/openmischannel/template/"+relatifName. The relatid name must not begin with file separator. The relative name must is plate-forme specific file separators. Return null if not found.

Definition at line 115 of file Freemarkerv1TemplateDelegate.java.

References org.openmobileis.common.util.collection.Array.get(), and org.openmobileis.common.util.collection.Array.size.


The documentation for this class was generated from the following file:
Generated on Mon Jan 14 17:29:53 2008 for OpenMobileIS by  doxygen 1.5.4