|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.opencms.template.cache.A_CmsElement
|
+--com.opencms.template.cache.CmsMethodElement
An instance of CmsMethodElement represents an special method Element in the OpenCms element cache area. It contains all informations to generate the output of this method. It also stores the variants of once generated content to speed up performance.
| Field Summary |
| Fields inherited from class com.opencms.template.cache.A_CmsElement |
m_cacheDirectives, m_className, m_elementDefinitions, m_hasDepVariants, m_readAccessGroup, m_templateName, m_timestamp |
| 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 | |
CmsMethodElement(String className,
String methodName,
CmsMethodCacheDirectives mcd,
int variantCachesize)
Constructor for an element with the given class and template name. |
|
| Method Summary | |
void |
checkProxySettings(CmsObject cms,
CmsCacheDirectives proxySettings,
Hashtable parameters)
checks the proxy public and the proxy private cache settings of this element and all subelements. |
void |
checkReadAccess(CmsObject cms)
checks the read access. |
byte[] |
getContent(CmsElementCache elementCache,
CmsObject cms,
CmsElementDefinitionCollection elDefs,
String elementName,
Hashtable parameters,
String methodParameter)
Get the content of this element. |
protected void |
throwException(String errorMessage,
int type)
Help method that handles any occuring exception by writing an error message to the OpenCms logfile and throwing a CmsException of the given type. |
| Methods inherited from class com.opencms.template.cache.A_CmsElement |
addDefinition, addVariant, clearVariantCache, getAllDefinitions, getAllVariantKeys, getCacheDirectives, getElementDefinition, getTemplateClass, getVariant, hasDependenciesVariants, init, init, removeVariant, resolveVariant, thisElementHasDepVariants, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CmsMethodElement(String className,
String methodName,
CmsMethodCacheDirectives mcd,
int variantCachesize)
| Method Detail |
public void checkProxySettings(CmsObject cms,
CmsCacheDirectives proxySettings,
Hashtable parameters)
checkProxySettings in class A_CmsElementcms - the cms object.proxySettings - The CacheDirectives to merge the own CacheDriectives with.parameters - A Hashtable with the parameters.
public byte[] getContent(CmsElementCache elementCache,
CmsObject cms,
CmsElementDefinitionCollection elDefs,
String elementName,
Hashtable parameters,
String methodParameter)
throws CmsException
getContent in class A_CmsElementelementCache - Entry point for the element cachecms - CmsObject for accessing system resourceselDefs - Definitions of this element's subelementsparameters - All parameters of this requestmethodParameter - contains the parameter for the methode (the tagcontent in the xmlfile).
CmsException
public void checkReadAccess(CmsObject cms)
throws CmsException
checkReadAccess in class A_CmsElementcms - The cms Object for reading groups.
CmsException - if no read access.
protected void throwException(String errorMessage,
int type)
throws CmsException
errorMessage - String with the error message to be printed.type - Type of the exception to be thrown.
CmsException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||