Package org.alfresco.transform.registry
Class CombinedConfig
java.lang.Object
org.alfresco.transform.registry.CombinedTransformConfig
org.alfresco.transform.registry.CombinedConfig
public class CombinedConfig
extends org.alfresco.transform.registry.CombinedTransformConfig
This class reads multiple T-Engine config and local files and registers as if they were all in one file. Transform options are shared between all sources.
The caller should make calls to addRemoteConfig(List, String), addLocalConfig(String) or CombinedTransformConfig.addTransformConfig(TransformConfig, String, String, AbstractTransformRegistry) followed by a call to register(TransformServiceRegistryImpl).
- Author:
- adavis
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCombinedConfig(org.apache.commons.logging.Log log, org.alfresco.transform.registry.AbstractTransformRegistry registry, org.alfresco.httpclient.HttpClientConfig httpClientConfig) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddLocalConfig(String path) voidaddPassThroughTransformer(MimetypeService mimetypeService, org.alfresco.transform.registry.AbstractTransformRegistry registry) Adds a PassThrough transform where the source and target mimetypes are identical, or transforms to "text/plain" from selected text based types.booleanaddRemoteConfig(List<String> urls, String remoteType) protected booleanvoidregister(TransformServiceRegistryImpl registry) Methods inherited from class org.alfresco.transform.registry.CombinedTransformConfig
addTransformConfig, addTransformConfig, buildTransformConfig, clear, combineAndRegister, combineTransformerConfig, getTransformerByNameMap, registerCombinedTransformers, transformerCount, transformerName
-
Field Details
-
X_ALFRESCO_RETRY_NEEDED_HEADER
- See Also:
-
-
Constructor Details
-
CombinedConfig
public CombinedConfig(org.apache.commons.logging.Log log, org.alfresco.transform.registry.AbstractTransformRegistry registry, org.alfresco.httpclient.HttpClientConfig httpClientConfig)
-
-
Method Details
-
addLocalConfig
-
addRemoteConfig
- Throws:
IOException
-
isPassThroughTransformName
- Overrides:
isPassThroughTransformNamein classorg.alfresco.transform.registry.CombinedTransformConfig
-
addPassThroughTransformer
public void addPassThroughTransformer(MimetypeService mimetypeService, org.alfresco.transform.registry.AbstractTransformRegistry registry) Adds a PassThrough transform where the source and target mimetypes are identical, or transforms to "text/plain" from selected text based types.- Parameters:
mimetypeService- to find all the mimetypes
-
register
-