Class ISYSRenderEngine
- java.lang.Object
-
- com.saperion.connector.render.engine.BaseRenderEngine
-
- com.saperion.connector.renditions.isys.ISYSRenderEngine
-
- All Implemented Interfaces:
RenderEngine
public class ISYSRenderEngine extends BaseRenderEngine
The ISYSRenderEngine uses the ISYS executable for rendering.
The following additional options are required:- externalApplicationPath: Absolute path to the ISYS executable used for rendering.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringEXTERNAL_APPLICATION_PATHProperty used to define the absolute path of the external rendering-application.-
Fields inherited from class com.saperion.connector.render.engine.BaseRenderEngine
DEFAULT_EXTENSION
-
-
Constructor Summary
Constructors Constructor Description ISYSRenderEngine()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetPathToExecutable(Options options)java.util.Set<SourceFormat>getSupportedSourceFormats()Gets the supported source formats.java.util.Set<TargetFormat>getSupportedTargetFormats()Gets the supported target formats.java.util.List<Rendition>safeRender(InputStreamDescriptor content, SourceFormat format, Options options)Creates the collection ofinstances which represent rendered content incl.Rendition-
Methods inherited from class com.saperion.connector.render.engine.BaseRenderEngine
configure, createInputStreamDescriptor, createInputStreamDescriptor, getFileFromUrl, getProperties, parseExtension, render, supportsSourceFormat, supportsTargetFormat
-
-
-
-
Field Detail
-
EXTERNAL_APPLICATION_PATH
public static final java.lang.String EXTERNAL_APPLICATION_PATH
Property used to define the absolute path of the external rendering-application.- See Also:
- Constant Field Values
-
-
Method Detail
-
getSupportedSourceFormats
public java.util.Set<SourceFormat> getSupportedSourceFormats()
Description copied from interface:RenderEngineGets the supported source formats.- Returns:
- returns all
SourceFormatsupported by the render engine
-
getSupportedTargetFormats
public java.util.Set<TargetFormat> getSupportedTargetFormats()
Description copied from interface:RenderEngineGets the supported target formats.- Returns:
- returns all
TargetFormatsupported by the render engine
-
safeRender
public java.util.List<Rendition> safeRender(InputStreamDescriptor content, SourceFormat format, Options options) throws java.util.concurrent.TimeoutException, RenderingException
Description copied from class:BaseRenderEngineCreates the collection ofinstances which represent rendered content incl. information.Rendition
Method to be implemented by the specific render engine.- Specified by:
safeRenderin classBaseRenderEngine- Parameters:
content- Content asInputStreamDescriptorwhich should be rendered incl. filenameformat-SourceFormatdetermined by the file extensionoptions-Optionswhich are describing how to render the content- Returns:
- the collection of
instances which represent rendered content incl. informationsRendition - Throws:
java.util.concurrent.TimeoutException- if a timeout was specified and it was reachedFormatNotSupportedException- if the input or output format is not supportedPreconditionFailedException- if parts of the options are missingRenderingException- if engine is not available or internal initialization failures
-
getPathToExecutable
public static java.lang.String getPathToExecutable(Options options) throws PreconditionFailedException
- Throws:
PreconditionFailedException
-
-