Class RenderingService
- java.lang.Object
-
- org.nuxeo.ecm.automation.core.rendering.RenderingService
-
public class RenderingService extends Object
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected FreemarkerRenderftlprotected MvelRendermvel
-
Constructor Summary
Constructors Constructor Description RenderingService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RenderingServicegetInstance()RenderergetRenderer(String type)Stringrender(String type, String uriOrContent, OperationContext ctx)
-
-
-
Field Detail
-
mvel
protected MvelRender mvel
-
ftl
protected FreemarkerRender ftl
-
-
Method Detail
-
getInstance
public static RenderingService getInstance()
-
render
public String render(String type, String uriOrContent, OperationContext ctx) throws OperationException, RenderingException, freemarker.template.TemplateException, IOException
- Throws:
OperationExceptionRenderingExceptionfreemarker.template.TemplateExceptionIOException
-
-