Class 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:
    Serialized Form
    • 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

      All Methods Instance Methods Concrete Methods 
      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
    • Constructor Detail

      • AllHttpScopesAndAppContextHashModel

        public AllHttpScopesAndAppContextHashModel​(freemarker.template.ObjectWrapper wrapper,
                                                   ApplicationContextAccessor applicationContextAccessor,
                                                   javax.servlet.ServletContext context,
                                                   javax.servlet.http.HttpServletRequest request,
                                                   boolean disableVariableRestrictions)
    • Method Detail

      • 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