构造器和说明 |
---|
VelocityRender() |
VelocityRender(java.lang.ClassLoader classLoader) |
VelocityRender(java.lang.ClassLoader classLoader,
java.lang.String viewPrefix) |
限定符和类型 | 方法和说明 |
---|---|
org.apache.velocity.runtime.RuntimeInstance |
getProvider()
引擎提供者
|
org.apache.velocity.runtime.RuntimeInstance |
getProviderOfDebug()
引擎提供者(调试模式)
|
<T extends org.apache.velocity.runtime.directive.Directive> |
putDirective(T obj)
添加共享指令(自定义标签)
|
void |
putVariable(java.lang.String key,
java.lang.Object obj)
添加共享变量
|
void |
render_mav(ModelAndView mv,
Context ctx,
SupplierEx<java.io.OutputStream> outputStream) |
void |
render(java.lang.Object obj,
Context ctx)
渲染
|
java.lang.String |
renderAndReturn(java.lang.Object obj,
Context ctx)
渲染并返回(默认不实现)
|
public VelocityRender()
public VelocityRender(java.lang.ClassLoader classLoader)
public VelocityRender(java.lang.ClassLoader classLoader, java.lang.String viewPrefix)
public org.apache.velocity.runtime.RuntimeInstance getProvider()
public org.apache.velocity.runtime.RuntimeInstance getProviderOfDebug()
public <T extends org.apache.velocity.runtime.directive.Directive> void putDirective(T obj)
public void putVariable(java.lang.String key, java.lang.Object obj)
public void render(java.lang.Object obj, Context ctx) throws java.lang.Throwable
Render
public java.lang.String renderAndReturn(java.lang.Object obj, Context ctx) throws java.lang.Throwable
Render
renderAndReturn
在接口中 Render
java.lang.Throwable
public void render_mav(ModelAndView mv, Context ctx, SupplierEx<java.io.OutputStream> outputStream) throws java.lang.Throwable
java.lang.Throwable