Class ImageThumbnailProvider

    • Constructor Detail

      • ImageThumbnailProvider

        public ImageThumbnailProvider()
    • Method Detail

      • applies

        public boolean applies​(org.apache.sling.api.resource.Resource resource)
        Description copied from interface: ThumbnailProvider
        Returns true if the ThumbnailProvider applies for the specified resource.
        Specified by:
        applies in interface ThumbnailProvider
        Parameters:
        resource - the resource to check
        Returns:
        true if this ThumbnailProvider will create a thumbnail for this resource, false otherwise
      • getThumbnail

        public InputStream getThumbnail​(org.apache.sling.api.resource.Resource resource)
        Description copied from interface: ThumbnailProvider
        Get the thumbnail from the specified resource.
        Specified by:
        getThumbnail in interface ThumbnailProvider
        Parameters:
        resource - the resource from which to retrieve the thumbnail
        Returns:
        the thumbnail