Interface TransformationHandler

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getResourceType()
      Get the resource type associated with this handler
      void handle​(net.coobird.thumbnailator.Thumbnails.Builder<? extends InputStream> builder, org.apache.sling.api.resource.Resource config)
      Handles the transformation of the file using the command values from the suffix segment.
    • Method Detail

      • getResourceType

        String getResourceType()
        Get the resource type associated with this handler
        Returns:
        the handler resource type
      • handle

        void handle​(net.coobird.thumbnailator.Thumbnails.Builder<? extends InputStream> builder,
                    org.apache.sling.api.resource.Resource config)
             throws IOException
        Handles the transformation of the file using the command values from the suffix segment.
        Parameters:
        builder - the Thumbnails builder to use / update
        config - the configuration values for the transformation
        Throws:
        IOException - an exception occurs transforming the file