Class AllHttpScopesAndAppContextHashModel
java.lang.Object
freemarker.template.WrappingTemplateModel
freemarker.template.SimpleHash
org.craftercms.engine.view.freemarker.AllHttpScopesAndAppContextHashModel
- All Implemented Interfaces:
freemarker.template.TemplateHashModel
,freemarker.template.TemplateHashModelEx
,freemarker.template.TemplateHashModelEx2
,freemarker.template.TemplateModel
,Serializable
public class AllHttpScopesAndAppContextHashModel
extends freemarker.template.SimpleHash
Like
AllHttpScopesHashModel
, but also lookup keys in the Application Context.- Author:
- Alfonso Vásquez
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface freemarker.template.TemplateHashModelEx2
freemarker.template.TemplateHashModelEx2.KeyValuePair, freemarker.template.TemplateHashModelEx2.KeyValuePairIterator
-
Field Summary
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
-
Constructor Summary
ConstructorDescriptionAllHttpScopesAndAppContextHashModel
(freemarker.template.ObjectWrapper wrapper, ApplicationContextAccessor applicationContextAccessor, javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request, boolean disableVariableRestrictions) -
Method Summary
Methods inherited from class freemarker.template.SimpleHash
containsKey, copyMap, isEmpty, keys, keyValuePairIterator, put, put, putAll, remove, size, synchronizedWrapper, toMap, toString, values
Methods inherited from class freemarker.template.WrappingTemplateModel
getDefaultObjectWrapper, getObjectWrapper, setDefaultObjectWrapper, setObjectWrapper, wrap
-
Constructor Details
-
AllHttpScopesAndAppContextHashModel
public AllHttpScopesAndAppContextHashModel(freemarker.template.ObjectWrapper wrapper, ApplicationContextAccessor applicationContextAccessor, javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request, boolean disableVariableRestrictions)
-
-
Method Details
-
get
public freemarker.template.TemplateModel get(String key) throws freemarker.template.TemplateModelException - Specified by:
get
in interfacefreemarker.template.TemplateHashModel
- Overrides:
get
in classfreemarker.template.SimpleHash
- Throws:
freemarker.template.TemplateModelException
-