Class ServletContextHashModel

  • All Implemented Interfaces:
    freemarker.template.TemplateHashModel, freemarker.template.TemplateModel

    public class ServletContextHashModel
    extends Object
    implements freemarker.template.TemplateHashModel
    Template model for the ServletContext
    Author:
    Alfonso Vásquez
    • Constructor Detail

      • ServletContextHashModel

        public ServletContextHashModel​(javax.servlet.ServletContext servletContext,
                                       freemarker.template.ObjectWrapper objectWrapper)
    • Method Detail

      • get

        public freemarker.template.TemplateModel get​(String key)
                                              throws freemarker.template.TemplateModelException
        Specified by:
        get in interface freemarker.template.TemplateHashModel
        Throws:
        freemarker.template.TemplateModelException
      • isEmpty

        public boolean isEmpty()
                        throws freemarker.template.TemplateModelException
        Specified by:
        isEmpty in interface freemarker.template.TemplateHashModel
        Throws:
        freemarker.template.TemplateModelException