public class RenderingService extends Object
Modifier and Type | Field and Description |
---|---|
protected FreemarkerRender |
ftl |
protected MvelRender |
mvel |
Constructor and Description |
---|
RenderingService() |
Modifier and Type | Method and Description |
---|---|
static RenderingService |
getInstance() |
Renderer |
getRenderer(String type) |
String |
render(String type,
String uriOrContent,
OperationContext ctx) |
protected MvelRender mvel
protected FreemarkerRender ftl
public RenderingService()
public static RenderingService getInstance()
public String render(String type, String uriOrContent, OperationContext ctx) throws OperationException, RenderingException, freemarker.template.TemplateException, IOException
OperationException
RenderingException
freemarker.template.TemplateException
IOException
public Renderer getRenderer(String type)
Copyright © 2016 Nuxeo SA. All rights reserved.