Package com.saperion.ngc.rendering
Class NgcRenderService
java.lang.Object
com.saperion.ngc.rendering.NgcRenderService
A service class that can be used to render a stream. The service uses an
ExecutorService
and a RenderEngine
to 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
Modifier and TypeMethodDescriptionstatic NgcRenderService
List<com.saperion.connector.renditions.Rendition>
renderStream
(com.saperion.common.io.InputStreamDescriptor stream, com.saperion.connector.formats.TargetFormat targetFormat) Renders the provided stream.
-
Method Details
-
getInstance
- Returns:
- singleton instance of the render-service
-
renderStream
public List<com.saperion.connector.renditions.Rendition> renderStream(com.saperion.common.io.InputStreamDescriptor stream, com.saperion.connector.formats.TargetFormat targetFormat) throws TimeoutException, com.saperion.connector.renditions.exceptions.RenderingException Renders the provided stream.- Parameters:
stream
- stream to rendertargetFormat
- format to render to- Returns:
- list of renditions
- Throws:
TimeoutException
- when rendering took longer than the timeoutcom.saperion.connector.renditions.exceptions.RenderingException
- when rendering failed because of an error
-