org.openmobileis.embedded.webserver.templates
Interface TemplateManagerDelegate

All Known Implementing Classes:
Freemarkerv1TemplateDelegate

public interface TemplateManagerDelegate

Title: OpenMobileIS project source
Description: Base interface for template management. Template management are delegated to delegate. Delegate must be registered to the TemplateManager before its activation (call to getManager() method).

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

Method Summary
 TemplateModelRoot getTemplateModelRoot()
          initialize template structure for this request.
 void init()
          init template and cache management.
 void sendResponse(java.lang.String templateName, TemplateModelRoot modelRoot, HttpServletResponse res)
           
 void updateTemplateWithNavigationBarData(java.lang.Object modelRoot, java.lang.String data)
           
 

Method Detail

init

public void init()
init template and cache management. cache template is use to detect cache update during synchronization


updateTemplateWithNavigationBarData

public void updateTemplateWithNavigationBarData(java.lang.Object modelRoot,
                                                java.lang.String data)

getTemplateModelRoot

public TemplateModelRoot getTemplateModelRoot()
initialize template structure for this request.


sendResponse

public void sendResponse(java.lang.String templateName,
                         TemplateModelRoot modelRoot,
                         HttpServletResponse res)
                  throws java.io.IOException,
                         TemplateNotFoundException
Throws:
java.io.IOException
TemplateNotFoundException


Copyright 2006 OpenMobileIS. All Rights Reserved.