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

    Constructors
    Constructor
    Description
    AllHttpScopesAndAppContextHashModel(freemarker.template.ObjectWrapper wrapper, ApplicationContextAccessor applicationContextAccessor, javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request, boolean disableVariableRestrictions)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    freemarker.template.TemplateModel
    get(String key)
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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 interface freemarker.template.TemplateHashModel
      Overrides:
      get in class freemarker.template.SimpleHash
      Throws:
      freemarker.template.TemplateModelException