|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openmobileis.embedded.webserver.templates.TemplateManager
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 ${}.
Method Summary | |
void |
cacheUnavailable(CacheEvent e)
|
void |
elementRemoved(CacheEvent e)
|
void |
elementUpdated(CacheEvent e)
|
void |
elementUpdateFailed(CacheEvent e)
|
static TemplateManager |
getManager()
|
Template |
getTemplate(java.lang.String relatifPath)
return the template with specified relative name. |
TemplateModelRoot |
getTemplateModelRoot()
initialize template structure for this request. |
protected void |
init()
init template and cache management. |
void |
sendResponse(java.lang.String templateName,
TemplateModelRoot modelRoot,
HttpServletResponse res)
|
void |
setTemplateRootPath(java.lang.String rootPath)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static TemplateManager getManager()
public void setTemplateRootPath(java.lang.String rootPath)
protected void init()
public void cacheUnavailable(CacheEvent e)
public void elementUpdated(CacheEvent e)
public void elementUpdateFailed(CacheEvent e)
public void elementRemoved(CacheEvent e)
public TemplateModelRoot getTemplateModelRoot()
public Template getTemplate(java.lang.String relatifPath)
public void sendResponse(java.lang.String templateName, TemplateModelRoot modelRoot, HttpServletResponse res) throws java.io.IOException, TemplateNotFoundException
java.io.IOException
TemplateNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |