Class AbstractAssetProcessor
- java.lang.Object
-
- org.craftercms.studio.impl.v1.asset.processing.AbstractAssetProcessor
-
- All Implemented Interfaces:
AssetProcessor
- Direct Known Subclasses:
ImageTransformingProcessor
public abstract class AbstractAssetProcessor extends Object implements AssetProcessor
Base class forAssetProcessor
s.- Author:
- avasquez
-
-
Constructor Summary
Constructors Constructor Description AbstractAssetProcessor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
doProcessAsset(Path inputFile, Path outputFile, Map<String,String> params)
protected String
getOutputRepoPath(ProcessorConfiguration config, Matcher inputPathMatcher)
Asset
processAsset(ProcessorConfiguration config, Matcher inputPathMatcher, Asset input)
Processes the given asset.
-
-
-
Method Detail
-
processAsset
public Asset processAsset(ProcessorConfiguration config, Matcher inputPathMatcher, Asset input) throws AssetProcessingException
Description copied from interface:AssetProcessor
Processes the given asset.- Specified by:
processAsset
in interfaceAssetProcessor
- Parameters:
config
- the configuration to useinputPathMatcher
- the Matcher object that resulted from path matching the asset against the input path pattern of the pipelineinput
- the asset to process- Returns:
- the transformed asset or a new asset
- Throws:
AssetProcessingException
- if an error occurs.
-
getOutputRepoPath
protected String getOutputRepoPath(ProcessorConfiguration config, Matcher inputPathMatcher)
-
-