类 TemplateDirectiveHandler

java.lang.Object
com.publiccms.common.base.BaseHandler
com.publiccms.common.handler.TemplateDirectiveHandler
所有已实现的接口:
RenderHandler

public class TemplateDirectiveHandler extends BaseHandler
TemplateDirectiveHandler
  • 字段详细资料

    • parameters

      private Map<String,freemarker.template.TemplateModel> parameters
    • loopVars

      private freemarker.template.TemplateModel[] loopVars
    • templateDirectiveBody

      private freemarker.template.TemplateDirectiveBody templateDirectiveBody
    • environment

      private freemarker.core.Environment environment
  • 构造器详细资料

    • TemplateDirectiveHandler

      public TemplateDirectiveHandler(Map<String,freemarker.template.TemplateModel> parameters, freemarker.template.TemplateModel[] loopVars, freemarker.core.Environment environment, freemarker.template.TemplateDirectiveBody templateDirectiveBody)
      参数:
      parameters -
      loopVars -
      environment -
      templateDirectiveBody -
  • 方法详细资料

    • render

      public void render() throws freemarker.template.TemplateException, IOException
      从接口复制的说明: RenderHandler
      渲染
      抛出:
      freemarker.template.TemplateException
      IOException
    • print

      public void print(String value) throws IOException
      从接口复制的说明: RenderHandler
      打印
      参数:
      value -
      抛出:
      IOException
    • getWriter

      public Writer getWriter()
      从接口复制的说明: RenderHandler
      获取Writer
      返回:
      writer
    • reduce

      private Map<String,freemarker.template.TemplateModel> reduce() throws freemarker.template.TemplateModelException
      抛出:
      freemarker.template.TemplateModelException
    • reduce

      private void reduce(Map<String,freemarker.template.TemplateModel> reduceMap)
    • getMap

      public Map<String,String> getMap(String name) throws freemarker.template.TemplateModelException
      参数:
      name -
      返回:
      map value
      抛出:
      freemarker.template.TemplateModelException
    • getStringWithoutRegister

      protected String getStringWithoutRegister(String name) throws freemarker.template.TemplateModelException
      指定者:
      getStringWithoutRegister 在类中 BaseHandler
      抛出:
      freemarker.template.TemplateModelException
    • getIntegerWithoutRegister

      public Integer getIntegerWithoutRegister(String name) throws freemarker.template.TemplateModelException
      指定者:
      getIntegerWithoutRegister 在类中 BaseHandler
      抛出:
      freemarker.template.TemplateModelException
    • getByteWithoutRegister

      public Byte getByteWithoutRegister(String name) throws freemarker.template.TemplateModelException
      指定者:
      getByteWithoutRegister 在类中 BaseHandler
      抛出:
      freemarker.template.TemplateModelException
    • getShort

      public Short getShort(String name) throws freemarker.template.TemplateModelException
      参数:
      name -
      返回:
      short value
      抛出:
      freemarker.template.TemplateModelException
    • getLong

      public Long getLong(String name) throws freemarker.template.TemplateModelException
      参数:
      name -
      返回:
      long value
      抛出:
      freemarker.template.TemplateModelException
    • getDouble

      public Double getDouble(String name) throws freemarker.template.TemplateModelException
      参数:
      name -
      返回:
      double value
      抛出:
      freemarker.template.TemplateModelException
    • getBigDecimal

      public BigDecimal getBigDecimal(String name) throws freemarker.template.TemplateModelException
      参数:
      name -
      返回:
      bigDecimal value
      抛出:
      freemarker.template.TemplateModelException
    • getStringArrayWithoutRegister

      protected String[] getStringArrayWithoutRegister(String name) throws freemarker.template.TemplateModelException
      指定者:
      getStringArrayWithoutRegister 在类中 BaseHandler
      抛出:
      freemarker.template.TemplateModelException
    • getBooleanWithoutRegister

      protected Boolean getBooleanWithoutRegister(String name) throws freemarker.template.TemplateModelException
      指定者:
      getBooleanWithoutRegister 在类中 BaseHandler
      抛出:
      freemarker.template.TemplateModelException
    • getDateWithoutRegister

      public Date getDateWithoutRegister(String name) throws freemarker.template.TemplateModelException
      指定者:
      getDateWithoutRegister 在类中 BaseHandler
      抛出:
      freemarker.template.TemplateModelException
    • getLocale

      public Locale getLocale()
      返回:
      locale
    • getRequest

      public jakarta.servlet.http.HttpServletRequest getRequest() throws freemarker.template.TemplateModelException
      返回:
      request
      抛出:
      freemarker.template.TemplateModelException
    • getAttribute

      public Object getAttribute(String name) throws freemarker.template.TemplateModelException
      参数:
      name -
      返回:
      attribute
      抛出:
      freemarker.template.TemplateModelException
    • inHttp

      public boolean inHttp()
      返回:
      if in http