com.opencms.template.cache
Class CmsElementXml
java.lang.Object
|
+--com.opencms.template.cache.A_CmsElement
|
+--com.opencms.template.cache.CmsElementXml
- All Implemented Interfaces:
- I_CmsLogChannels
- public class CmsElementXml
- extends A_CmsElement
- implements I_CmsLogChannels
An instance of CmsElementXML represents an requestable Element in the OpenCms
element cache area. It contains all informations to generate the content of this
element. It also stores the variants of once generated content to speed up
performance.
It points to other depending elements. Theses elements are called to generate
their content on generation-time.
- Author:
- Alexander Lucas
| 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 |
| Methods inherited from class com.opencms.template.cache.A_CmsElement |
addDefinition, addVariant, checkProxySettings, checkReadAccess, clearVariantCache, getAllDefinitions, getAllVariantKeys, getCacheDirectives, getElementDefinition, getTemplateClass, getVariant, hasDependenciesVariants, init, init, removeVariant, resolveVariant, thisElementHasDepVariants, toString |
CmsElementXml
public CmsElementXml(String className,
String templateName,
String readAccessGroup,
CmsCacheDirectives cd,
int variantCachesize)
- Constructor for an element with the given class and template name.
CmsElementXml
public CmsElementXml(String className,
String templateName,
String readAccessGroup,
CmsCacheDirectives cd,
CmsElementDefinitionCollection defs,
int variantCachesize)
- A construcor which creates an element with the given element
definitions.
- Parameters:
className - the classname of this element-definition.readAccessGroup - The group that may read the element.cd - Cache directives for this elementdefs - CmsElementDefinitionCollection for this element.
getContent
public byte[] getContent(CmsElementCache elementCache,
CmsObject cms,
CmsElementDefinitionCollection elDefs,
String elementName,
Hashtable parameters,
String methodParameter)
throws CmsException
- Get the content of this element.
- Specified by:
getContent in class A_CmsElement
- Parameters:
elementCache - Entry point for the element cachecms - CmsObject for accessing system resourceselDefs - Definitions of this element's subelementsparameters - All parameters of this requestmethodParameter - not used here, only methodelemets need it.
- Returns:
- Byte array with the processed content of this element.
- Throws:
CmsException