Class AbstractTransformServiceRegistry

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isSupported​(java.lang.String sourceMimetype, long size, java.lang.String targetMimetype, java.util.Map<java.lang.String,​java.lang.String> options, java.lang.String renditionName)
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractTransformServiceRegistry

        public AbstractTransformServiceRegistry()
    • Method Detail

      • isSupported

        public boolean isSupported​(java.lang.String sourceMimetype,
                                   long size,
                                   java.lang.String targetMimetype,
                                   java.util.Map<java.lang.String,​java.lang.String> options,
                                   java.lang.String renditionName)
        Description copied from interface: TransformServiceRegistry
        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.
        Specified by:
        isSupported in interface TransformServiceRegistry
        Parameters:
        sourceMimetype - the mimetype of the source content
        size - the size in bytes of the source content. Ignored if negative.
        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.