接口 RenderHandler

所有已知实现类:
BaseHandler, HttpParameterHandler, TemplateDirectiveHandler

public interface RenderHandler
RenderHandler
  • 方法详细资料

    • render

      void render() throws freemarker.template.TemplateException, IOException
      渲染
      抛出:
      IOException
      freemarker.template.TemplateModelException
      freemarker.template.TemplateException
    • print

      void print(String value) throws IOException
      打印
      参数:
      value -
      抛出:
      IOException
    • getWriter

      Writer getWriter() throws IOException
      获取Writer
      返回:
      writer
      抛出:
      IOException
    • put

      RenderHandler put(String key, Object value)
      参数:
      key -
      value -
      返回:
      render handler
    • getString

      String getString(String name, String defaultValue) throws freemarker.template.TemplateModelException
      参数:
      name -
      defaultValue -
      返回:
      string value
      抛出:
      freemarker.template.TemplateModelException
    • getString

      String getString(String name) throws freemarker.template.TemplateModelException
      参数:
      name -
      返回:
      string value
      抛出:
      freemarker.template.TemplateModelException
    • getCharacter

      Character getCharacter(String name) throws freemarker.template.TemplateModelException
      参数:
      name -
      返回:
      character value
      抛出:
      freemarker.template.TemplateModelException
    • getInteger

      int getInteger(String name, int defaultValue) throws freemarker.template.TemplateModelException
      参数:
      name -
      defaultValue -
      返回:
      int value
      抛出:
      freemarker.template.TemplateModelException
    • getInteger

      Integer getInteger(String name) throws freemarker.template.TemplateModelException
      参数:
      name -
      返回:
      int value
      抛出:
      freemarker.template.TemplateModelException
    • getByte

      Byte getByte(String name) throws freemarker.template.TemplateModelException
      参数:
      name -
      返回:
      byte value
      抛出:
      freemarker.template.TemplateModelException
    • getByte

      byte getByte(String name, byte defaultValue) throws freemarker.template.TemplateModelException
      参数:
      name -
      defaultValue -
      返回:
      byte value
      抛出:
      freemarker.template.TemplateModelException
    • getShort

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

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

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

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

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

      Integer[] getIntegerArray(String name) throws freemarker.template.TemplateModelException
      参数:
      name -
      返回:
      int array value
      抛出:
      freemarker.template.TemplateModelException
    • getLongArray

      Long[] getLongArray(String name) throws freemarker.template.TemplateModelException
      参数:
      name -
      返回:
      long array value
      抛出:
      freemarker.template.TemplateModelException
    • getShortArray

      Short[] getShortArray(String name) throws freemarker.template.TemplateModelException
      参数:
      name -
      返回:
      long array value
      抛出:
      freemarker.template.TemplateModelException
    • getStringArray

      String[] getStringArray(String name) throws freemarker.template.TemplateModelException
      参数:
      name -
      返回:
      string array value
      抛出:
      freemarker.template.TemplateModelException
    • getStringArray

      String[] getStringArray(String name, String[] defaultValue) throws freemarker.template.TemplateModelException
      参数:
      name -
      defaultValue -
      返回:
      string array value
      抛出:
      freemarker.template.TemplateModelException
    • getBoolean

      boolean getBoolean(String name, boolean defaultValue) throws freemarker.template.TemplateModelException
      参数:
      name -
      defaultValue -
      返回:
      bool value
      抛出:
      freemarker.template.TemplateModelException
    • getBoolean

      Boolean getBoolean(String name) throws freemarker.template.TemplateModelException
      参数:
      name -
      返回:
      bool value
      抛出:
      freemarker.template.TemplateModelException
    • getDate

      Date getDate(String name) throws freemarker.template.TemplateModelException
      参数:
      name -
      返回:
      date value
      抛出:
      freemarker.template.TemplateModelException
    • getDate

      Date getDate(String name, Date defaultValue) throws freemarker.template.TemplateModelException
      参数:
      name -
      defaultValue -
      返回:
      date value
      抛出:
      freemarker.template.TemplateModelException
    • getLocale

      Locale getLocale()
      返回:
      locale
    • getMap

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

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

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

      boolean getRenderd()
      返回:
      if renderd
    • inHttp

      boolean inHttp()
      返回:
      if in http