Inheritance diagram for org.openmobileis.embedded.webserver.templates.Freemarkerv1TemplateDelegate:
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 ${}.
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) |
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.