public abstract class AbstractResourceDirective extends Object implements freemarker.template.TemplateDirectiveModel, org.springframework.web.context.ServletContextAware
| Modifier and Type | Field and Description |
|---|---|
static String |
BASE |
static String |
PATH |
static String |
VERSION |
| Constructor and Description |
|---|
AbstractResourceDirective() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public static final String BASE
public static final String PATH
public static final String VERSION
public void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext in interface org.springframework.web.context.ServletContextAwarepublic void execute(freemarker.core.Environment env,
Map params,
freemarker.template.TemplateModel[] loopVars,
freemarker.template.TemplateDirectiveBody body)
throws freemarker.template.TemplateException,
IOException
execute in interface freemarker.template.TemplateDirectiveModelfreemarker.template.TemplateExceptionIOExceptionprotected String getDefaultBase()
Copyright © 2015–2021 cn.gtmap. All rights reserved.