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
 java.lang.String getDefaultTemplateContentType()
          return the default Content-Type of the template HTTP response
 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 setDefaultTemplateContentType(java.lang.String defaultTemplateContentType)
          Default content type of the response.
 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

setDefaultTemplateContentType

public void setDefaultTemplateContentType(java.lang.String defaultTemplateContentType)
Default content type of the response. If not set it's html/text. Use to force the default Content-Type header of template HTTP response. "text/html; charset=ISO-8859-1" for example.


getDefaultTemplateContentType

public java.lang.String getDefaultTemplateContentType()
return the default Content-Type of the template HTTP response

Returns:


Copyright 2006 OpenMobileIS. All Rights Reserved.