cn.gtmap.estateplat.core.support.freemarker.directive
类 AbstractResourceDirective

java.lang.Object
  继承者 cn.gtmap.estateplat.core.support.freemarker.directive.AbstractResourceDirective
所有已实现的接口:
freemarker.template.TemplateDirectiveModel, freemarker.template.TemplateModel, org.springframework.beans.factory.Aware, org.springframework.web.context.ServletContextAware
直接已知子类:
CssDirective, ImgDirective, JsDirective

public abstract class AbstractResourceDirective
extends Object
implements freemarker.template.TemplateDirectiveModel, org.springframework.web.context.ServletContextAware

.

版本:
V1.0, 14-6-30
作者:
yangxin

字段摘要
static String BASE
           
static String PATH
           
static String VERSION
           
 
从接口 freemarker.template.TemplateModel 继承的字段
NOTHING
 
构造方法摘要
AbstractResourceDirective()
           
 
方法摘要
 void execute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody body)
           
protected  String getDefaultBase()
           
protected abstract  String getHtml(String path, String attrs)
           
 void setServletContext(javax.servlet.ServletContext servletContext)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

BASE

public static final String BASE
另请参见:
常量字段值

PATH

public static final String PATH
另请参见:
常量字段值

VERSION

public static final String VERSION
另请参见:
常量字段值
构造方法详细信息

AbstractResourceDirective

public AbstractResourceDirective()
方法详细信息

setServletContext

public void setServletContext(javax.servlet.ServletContext servletContext)
指定者:
接口 org.springframework.web.context.ServletContextAware 中的 setServletContext

execute

public void execute(freemarker.core.Environment env,
                    Map params,
                    freemarker.template.TemplateModel[] loopVars,
                    freemarker.template.TemplateDirectiveBody body)
             throws freemarker.template.TemplateException,
                    IOException
指定者:
接口 freemarker.template.TemplateDirectiveModel 中的 execute
抛出:
freemarker.template.TemplateException
IOException

getDefaultBase

protected String getDefaultBase()

getHtml

protected abstract String getHtml(String path,
                                  String attrs)


Copyright © 2015–2022 cn.gtmap. All rights reserved.