Class Transformer


  • public class Transformer
    extends java.lang.Object
    Represents a set of transformations supported by the Transform Service or Local Transform Service Registry that share the same transform options. Each may be an actual transformer or a pipeline of multiple transformers. It is possible that more than one transformer may able to perform a transformation from one mimetype to another. The actual selection of transformer is up to the Transform Service or Local Transform Service Registry to decide. Clients may use TransformServiceRegistry.isSupported(String, long, String, java.util.Map, String) to decide if they should send a request to the Transform Service. As a result clients have a simple generic view of transformations which allows new transformations to be added without the need to change client data structures other than to define new name value pairs. For this to work the Transform Service defines unique names for each option.
    • transformerName - is optional but if supplied should be unique. The client should infer nothing from the name as it is simply a label, but the Local Transform Service Registry will use the name in pipelines.
    • transformOptions - a grouping of individual transformer transformOptions. The group may be optional and may contain nested transformOptions.
    For local transforms, this structure is extended when defining a pipeline transform.
    • transformerPipeline - an array of pairs of transformer name and target extension for each transformer in the pipeline. The last one should not have an extension as that is defined by the request and should be in the supported list.
    • Constructor Detail

      • Transformer

        public Transformer()
    • Method Detail

      • getTransformerName

        public java.lang.String getTransformerName()
      • setTransformerName

        public void setTransformerName​(java.lang.String transformerName)
      • getTransformerPipeline

        public java.util.List<TransformStep> getTransformerPipeline()
      • setTransformerPipeline

        public void setTransformerPipeline​(java.util.List<TransformStep> transformerPipeline)
      • getTransformOptions

        public java.util.List<TransformOption> getTransformOptions()
      • setTransformOptions

        public void setTransformOptions​(java.util.List<TransformOption> transformOptions)
      • setSupportedSourceAndTargetList

        public void setSupportedSourceAndTargetList​(java.util.List<SupportedSourceAndTarget> supportedSourceAndTargetList)