|
|||||||||||
| 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.CmsDumpTemplate
|
+--com.opencms.flex.CmsJspTemplate
A simple dump class for JSPs which enables the use of JSP as sub-elements in the legacy OpenCms XMLTemplate mechanism.
| 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 | |
CmsJspTemplate()
The constructor of the class is empty and does nothing. |
|
| Method Summary | |
CmsCacheDirectives |
getCacheDirectives(CmsObject cms,
String templateFile,
String elementName,
Hashtable parameters,
String templateSelector)
Returns the caching information from the current template class for the ElementCache. |
byte[] |
getContent(CmsObject cms,
String jspFile,
String elementName,
Hashtable parameters)
Gets the content of the given JSP file to include them in the XMLTemplate. |
boolean |
isTemplateCacheSet()
Cache method required by the ElementCache to indicate if the results of the page should be cached in the ElementCache. |
boolean |
shouldReload(CmsObject cms,
String templateFile,
String elementName,
Hashtable parameters,
String templateSelector)
Method used by the ElementCache to check if the page should reload or not. |
| Methods inherited from class com.opencms.template.CmsDumpTemplate |
createElement, getContent, getKey, setTemplateCache |
| Methods inherited from class com.opencms.template.A_CmsTemplate |
collectCacheDirectives, debugPrint, getClassName, isCacheable, isExportable, isProxyPrivateCacheable, isProxyPublicCacheable, isStreamable, 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, isStreamable |
| Constructor Detail |
public CmsJspTemplate()
| Method Detail |
public byte[] getContent(CmsObject cms,
String jspFile,
String elementName,
Hashtable parameters)
throws CmsException
getContent in interface I_CmsTemplategetContent in class CmsDumpTemplatecms - for accessing system resourcesjspFile - filename of the JSP in the VFSelementName - not usedparameters - not used
CmsExceptionpublic boolean isTemplateCacheSet()
JSPs will be cached in the FlexCache and so
we always return false here.
isTemplateCacheSet in interface I_CmsTemplateisTemplateCacheSet in class CmsDumpTemplatefalse
public boolean shouldReload(CmsObject cms,
String templateFile,
String elementName,
Hashtable parameters,
String templateSelector)
JSPs will be cached in the FlexCache and so
we always return true here.
shouldReload in interface I_CmsTemplateshouldReload in class CmsDumpTemplatetrue
public CmsCacheDirectives getCacheDirectives(CmsObject cms,
String templateFile,
String elementName,
Hashtable parameters,
String templateSelector)
JSPs will be cached in the FlexCache and so
we always return directives that prevent caching here,
i.e. new CmsCacheDirectives(false)
getCacheDirectives in class CmsDumpTemplatecms - 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 parameterstemplateSelector - template section that should be processed
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||