Class SwitchingTransformServiceRegistry

    • Method Detail

      • getMaxSize

        public long getMaxSize​(java.lang.String sourceMimetype,
                               java.lang.String targetMimetype,
                               java.util.Map<java.lang.String,​java.lang.String> options,
                               java.lang.String renditionName)
        Description copied from interface: TransformServiceRegistry
        Returns the maximun size (in bytes) of the source content that can be transformed.
        Parameters:
        sourceMimetype - the mimetype of the source content
        targetMimetype - the mimetype of the target
        options - the actual name value pairs available that could be passed to the Transform Service.
        renditionName - (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 -1 there is no limit, but if 0 the transform is not supported.