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

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

org.openmobileis.embedded.webserver.templates.TemplateManagerDelegate org.openmobileis.embedded.webserver.templates.TemplateRetrieverManagerService 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

 Freemarkerv1TemplateDelegate ()
void init ()
 init template and cache management.
void updateTemplateWithNavigationBarData (Object modelRoot, String data)
void cacheUnavailable (CacheEvent e)
void elementUpdated (CacheEvent e)
void elementUpdateFailed (CacheEvent e)
void elementRemoved (CacheEvent e)
TemplateModelRoot getTemplateModelRoot ()
 initialize template structure for this request.
Template getTemplate (String relatifPath)
 return the template with specified relative name.
void sendResponse (String templateName, TemplateModelRoot modelRoot, HttpServletResponse res) throws java.io.IOException, TemplateNotFoundException
void registerTemplateRetriever (TemplateRetrieverService retriever)


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(), org.openmobileis.embedded.webserver.templates.TemplateRetrieverService.getServiceTemplate(), and org.openmobileis.common.util.collection.Array.size.


The documentation for this class was generated from the following file:
Generated on Tue May 22 23:01:18 2007 for OpenMobileIS by  doxygen 1.5.1-p1