Class TemplateView
- java.lang.Object
-
- org.nuxeo.ecm.webengine.model.view.TemplateView
-
public class TemplateView extends Object
A view to be used by regular JAX-RS resources to be able to use freemarker templates.- Author:
- Bogdan Stefanescu
-
-
Constructor Summary
Constructors Constructor Description TemplateView(Object owner, String name)
TemplateView(Object owner, URL url)
TemplateView(WebContext ctx, Object owner, String name)
TemplateView(WebContext ctx, Object owner, URL url)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TemplateView
arg(String key, Object value)
TemplateView
args(Map<String,Object> args)
static URL
findTemplate(Object owner, String name)
WebContext
getContext()
String
getString()
void
render(OutputStream out)
void
render(Writer writer)
-
-
-
Constructor Detail
-
TemplateView
public TemplateView(WebContext ctx, Object owner, String name)
-
TemplateView
public TemplateView(WebContext ctx, Object owner, URL url)
-
-
Method Detail
-
getContext
public WebContext getContext()
-
arg
public TemplateView arg(String key, Object value)
-
args
public TemplateView args(Map<String,Object> args)
-
render
public void render(Writer writer)
-
render
public void render(OutputStream out)
-
getString
public String getString()
-
-