|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.opencms.template.A_CmsTemplate
|
+--com.opencms.template.CmsJavascriptTemplate
| Field Summary |
| Fields inherited from interface com.opencms.boot.I_CmsLogChannels |
C_FLEX_CACHE, C_FLEX_LOADER, C_LOGGING, C_MODULE_CRITICAL, C_MODULE_DEBUG, C_MODULE_INFO, C_OPENCMS_CACHE, C_OPENCMS_CRITICAL, C_OPENCMS_CRONSCHEDULER, C_OPENCMS_DEBUG, C_OPENCMS_ELEMENTCACHE, C_OPENCMS_INFO, C_OPENCMS_INIT, C_OPENCMS_POOL, C_OPENCMS_STATICEXPORT, C_OPENCMS_STREAMING, C_PREPROCESSOR_IS_LOGGING |
| Constructor Summary | |
CmsJavascriptTemplate()
|
|
| Method Summary | |
A_CmsElement |
createElement(CmsObject cms,
String templateFile,
Hashtable parameters)
Not yet implemented |
byte[] |
getContent(CmsObject cms,
String templateFile,
String elementName,
Hashtable parameters)
Gets the content of a given template file with the given parameters. |
byte[] |
getContent(CmsObject cms,
String templateFile,
String elementName,
Hashtable parameters,
String templateSelector)
Gets the content of a defined section in a given template file with the given parameters. |
Object |
getKey(CmsObject cms,
String templateFile,
Hashtable parameters,
String templateSelector)
Gets the key that should be used to cache the results of this template class. |
boolean |
isStreamable(CmsObject cms,
String templateFile,
String elementName,
Hashtable parameters,
String templateSelector)
Indicates if the current template class is able to stream it's results directly to the response oputput stream. |
boolean |
isTemplateCacheSet()
Tests, if the template cache is setted. |
void |
setTemplateCache(I_CmsTemplateCache c)
Set the instance of template cache that should be used to store cacheable results of the subtemplates. |
boolean |
shouldReload(CmsObject cms,
String templateFile,
String elementName,
Hashtable parameters,
String templateSelector)
Indicates if a previous cached result should be reloaded. |
| Methods inherited from class com.opencms.template.A_CmsTemplate |
collectCacheDirectives, debugPrint, getClassName, isCacheable, isExportable, isProxyPrivateCacheable, isProxyPublicCacheable, throwException, throwException, throwException |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.opencms.template.I_CmsTemplate |
collectCacheDirectives, isCacheable, isExportable, isProxyPrivateCacheable, isProxyPublicCacheable |
| Constructor Detail |
public CmsJavascriptTemplate()
| Method Detail |
public byte[] getContent(CmsObject cms,
String templateFile,
String elementName,
Hashtable parameters)
throws CmsException
Parameters are stored in a hashtable and can derive from
getContent in interface I_CmsTemplatecms - CmsObject Object for accessing system resourcestemplateFile - Filename of the template fileelementName - Element name of this template in our parent templateparameters - Hashtable with all template class parameters.
CmsException
public byte[] getContent(CmsObject cms,
String templateFile,
String elementName,
Hashtable parameters,
String templateSelector)
throws CmsException
getContent in interface I_CmsTemplatecms - CmsObject Object for accessing system resources.templateFile - Filename of the template file.elementName - Element name of this template in our parent template.parameters - Hashtable with all template class parameters.templateSelector - section that should be processed.
CmsExceptiongetContent(CmsObject, String, String, Hashtable, String)
public Object getKey(CmsObject cms,
String templateFile,
Hashtable parameters,
String templateSelector)
getKey in interface I_CmsTemplatecms - CmsObject Object for accessing system resourcestemplateFile - Filename of the template fileparameters - Hashtable with all template class parameters.templateSelector - template section that should be processed.
public boolean isStreamable(CmsObject cms,
String templateFile,
String elementName,
Hashtable parameters,
String templateSelector)
Classes must not set this feature, if they might throw special exception that cause HTTP errors (e.g. 404/Not Found), or if they might send HTTP redirects.
If a class sets this feature, it has to check the
isStreaming() property of the RequestContext. If this is set
to true the results must be streamed directly
to the output stream. If it is false the results
must not be streamed.
Complex classes that are able top include other subtemplates have to check the streaming ability of their subclasses here!
isStreamable in interface I_CmsTemplateisStreamable in class A_CmsTemplatecms - CmsObject Object for accessing system resourcestemplateFile - Filename of the template fileelementName - Element name of this template in our parent template.parameters - Hashtable with all template class parameters.templateSelector - template section that should be processed.
public boolean isTemplateCacheSet()
isTemplateCacheSet in interface I_CmsTemplatetrue if setted, false otherwise.public void setTemplateCache(I_CmsTemplateCache c)
setTemplateCache in interface I_CmsTemplatec - Template cache to be used.
public boolean shouldReload(CmsObject cms,
String templateFile,
String elementName,
Hashtable parameters,
String templateSelector)
shouldReload in interface I_CmsTemplatecms - CmsObject Object for accessing system resourcestemplateFile - Filename of the template fileelementName - Element name of this template in our parent template.parameters - Hashtable with all template class parameters.templateSelector - template section that should be processed.
public A_CmsElement createElement(CmsObject cms,
String templateFile,
Hashtable parameters)
createElement in interface I_CmsTemplatecms - CmsObject for accessing system resources.templateFile - Name of the template file for the new elementparameters - All parameters of the current request
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||