Package com.saperion.ngc.rendering
Class NgcRenderService
- java.lang.Object
-
- com.saperion.ngc.rendering.NgcRenderService
-
public final class NgcRenderService extends java.lang.ObjectA service class that can be used to render a stream. The service uses anExecutorServiceand aRenderEngineto perform the rendering. The configuration for the executor service and the engine is read from:
- saperion.properties (engine class name, thread count)
- webclient.properties (render engine options)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NgcRenderServicegetInstance()java.util.List<com.saperion.connector.renditions.Rendition>renderStream(com.saperion.common.io.InputStreamDescriptor stream, com.saperion.connector.formats.TargetFormat targetFormat)Renders the provided stream.
-
-
-
Method Detail
-
getInstance
public static NgcRenderService getInstance()
- Returns:
- singleton instance of the render-service
-
renderStream
public java.util.List<com.saperion.connector.renditions.Rendition> renderStream(com.saperion.common.io.InputStreamDescriptor stream, com.saperion.connector.formats.TargetFormat targetFormat) throws java.util.concurrent.TimeoutException, com.saperion.connector.renditions.exceptions.RenderingExceptionRenders the provided stream.- Parameters:
stream- stream to rendertargetFormat- format to render to- Returns:
- list of renditions
- Throws:
java.util.concurrent.TimeoutException- when rendering took longer than the timeoutcom.saperion.connector.renditions.exceptions.RenderingException- when rendering failed because of an error
-
-