Interface TransformServiceRegistry
-
- All Known Implementing Classes:
AbstractTransformServiceRegistry,LegacyTransformServiceRegistry,LocalTransformServiceRegistry,SwitchingTransformServiceRegistry,TransformServiceRegistryImpl
public interface TransformServiceRegistryUsed by clients work out if a transformation is supported by a Transform Service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetMaxSize(java.lang.String sourceMimetype, java.lang.String targetMimetype, java.util.Map<java.lang.String,java.lang.String> actualOptions, java.lang.String transformName)Returns the maximun size (in bytes) of the source content that can be transformed.booleanisSupported(java.lang.String sourceMimetype, long sourceSizeInBytes, java.lang.String targetMimetype, java.util.Map<java.lang.String,java.lang.String> actualOptions, java.lang.String transformName)Works out if the Transform Server should be able to transform content of a given source mimetype and size into a target mimetype given a list of actual transform option names and values (Strings) plus the data contained in the objects registered with this class.
-
-
-
Method Detail
-
isSupported
boolean isSupported(java.lang.String sourceMimetype, long sourceSizeInBytes, java.lang.String targetMimetype, java.util.Map<java.lang.String,java.lang.String> actualOptions, java.lang.String transformName)Works out if the Transform Server should be able to transform content of a given source mimetype and size into a target mimetype given a list of actual transform option names and values (Strings) plus the data contained in the objects registered with this class.- Parameters:
sourceMimetype- the mimetype of the source contentsourceSizeInBytes- the size in bytes of the source content. Ignored if negative.targetMimetype- the mimetype of the targetactualOptions- the actual name value pairs available that could be passed to the Transform Service.transformName- (optional) name for the set of options and target mimetype. If supplied is used to cache results to avoid having to work out if a given transformation is supported a second time. The sourceMimetype and sourceSizeInBytes may still change. In the case of ACS this is the rendition name.
-
getMaxSize
long getMaxSize(java.lang.String sourceMimetype, java.lang.String targetMimetype, java.util.Map<java.lang.String,java.lang.String> actualOptions, java.lang.String transformName)Returns the maximun size (in bytes) of the source content that can be transformed.- Parameters:
sourceMimetype- the mimetype of the source contenttargetMimetype- the mimetype of the targetactualOptions- the actual name value pairs available that could be passed to the Transform Service.transformName- (optional) name for the set of options and target mimetype. If supplied is used to cache results to avoid having to work out if a given transformation is supported a second time. The sourceMimetype and sourceSizeInBytes may still change. In the case of ACS this is the rendition name.- Returns:
- the maximum size (in bytes) of the source content that can be transformed. If
-1there is no limit, but if0the transform is not supported.
-
-