Class LocalTransformImpl
java.lang.Object
org.alfresco.repo.content.transform.AbstractLocalTransform
org.alfresco.repo.content.transform.LocalTransformImpl
- All Implemented Interfaces:
LocalTransform
A local transformer using flat transform options.
Instances are automatically created for transformers identified by alfresco/transform json files and returned from
T-Engines which are themselves identified by global properties or system properties the match the pattern
localTransform.<name>.url. The transforms take place in a separate process (typically a Docker container).
-
Field Summary
Fields inherited from class org.alfresco.repo.content.transform.AbstractLocalTransform
log, mimetypeService, name, transformerDebug, transformsTransformOptionNames -
Constructor Summary
ConstructorsConstructorDescriptionLocalTransformImpl(String name, TransformerDebug transformerDebug, MimetypeService mimetypeService, boolean strictMimeTypeCheck, Map<String, Set<String>> strictMimetypeExceptions, boolean retryTransformOnDifferentMimeType, Set<org.alfresco.transform.config.TransformOption> transformsTransformOptions, LocalTransformServiceRegistry localTransformServiceRegistry, String baseUrl, org.alfresco.httpclient.HttpClientConfig httpClientConfig, int startupRetryPeriodSeconds) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanprotected voidtransformImpl(ContentReader reader, ContentWriter writer, Map<String, String> transformOptions, String sourceMimetype, String targetMimetype, String sourceExtension, String targetExtension, String renditionName, NodeRef sourceNodeRef) Methods inherited from class org.alfresco.repo.content.transform.AbstractLocalTransform
getName, getStrippedTransformOptions, getTransformsTransformOptionNames, transform
-
Constructor Details
-
LocalTransformImpl
public LocalTransformImpl(String name, TransformerDebug transformerDebug, MimetypeService mimetypeService, boolean strictMimeTypeCheck, Map<String, Set<String>> strictMimetypeExceptions, boolean retryTransformOnDifferentMimeType, Set<org.alfresco.transform.config.TransformOption> transformsTransformOptions, LocalTransformServiceRegistry localTransformServiceRegistry, String baseUrl, org.alfresco.httpclient.HttpClientConfig httpClientConfig, int startupRetryPeriodSeconds)
-
-
Method Details
-
remoteTransformerClientConfigured
public boolean remoteTransformerClientConfigured() -
isAvailable
public boolean isAvailable()- Specified by:
isAvailablein classAbstractLocalTransform
-
transformImpl
protected void transformImpl(ContentReader reader, ContentWriter writer, Map<String, String> transformOptions, String sourceMimetype, String targetMimetype, String sourceExtension, String targetExtension, String renditionName, NodeRef sourceNodeRef) - Specified by:
transformImplin classAbstractLocalTransform
-