Class MockAssetHandler

java.lang.Object
io.wcm.testing.mock.aem.dam.MockAssetHandler
All Implemented Interfaces:
com.day.cq.dam.api.handler.AssetHandler

public final class MockAssetHandler extends Object implements com.day.cq.dam.api.handler.AssetHandler
Mock implementation of AssetHandler.
  • Constructor Details

    • MockAssetHandler

      public MockAssetHandler()
  • Method Details

    • getMimeTypes

      public String[] getMimeTypes()
      Specified by:
      getMimeTypes in interface com.day.cq.dam.api.handler.AssetHandler
    • getImage

      public BufferedImage getImage(com.day.cq.dam.api.Rendition rendition) throws IOException
      Specified by:
      getImage in interface com.day.cq.dam.api.handler.AssetHandler
      Throws:
      IOException
    • getImage

      public BufferedImage getImage(com.day.cq.dam.api.Rendition rendition, Dimension maxDimension) throws IOException
      Specified by:
      getImage in interface com.day.cq.dam.api.handler.AssetHandler
      Throws:
      IOException
    • canHandleSubAssets

      public boolean canHandleSubAssets()
      Specified by:
      canHandleSubAssets in interface com.day.cq.dam.api.handler.AssetHandler
    • createThumbnails

      public void createThumbnails(com.day.cq.dam.api.Asset asset) throws IOException
      Specified by:
      createThumbnails in interface com.day.cq.dam.api.handler.AssetHandler
      Throws:
      IOException
    • createThumbnails

      public void createThumbnails(com.day.cq.dam.api.Asset asset, Collection<com.day.cq.dam.api.thumbnail.ThumbnailConfig> configs) throws IOException
      Specified by:
      createThumbnails in interface com.day.cq.dam.api.handler.AssetHandler
      Throws:
      IOException
    • createThumbnails

      public void createThumbnails(com.day.cq.dam.api.Asset asset, com.day.cq.dam.api.Rendition rendition, Collection<com.day.cq.dam.api.thumbnail.ThumbnailConfig> configs) throws IOException
      Specified by:
      createThumbnails in interface com.day.cq.dam.api.handler.AssetHandler
      Throws:
      IOException
    • exportAsset

      public void exportAsset(com.day.cq.dam.api.Asset asset, OutputStream os) throws com.day.cq.dam.api.AssetHandlerException
      Specified by:
      exportAsset in interface com.day.cq.dam.api.handler.AssetHandler
      Throws:
      com.day.cq.dam.api.AssetHandlerException
    • extractMetadata

      public com.day.cq.dam.api.metadata.ExtractedMetadata extractMetadata(com.day.cq.dam.api.Asset asset)
      Specified by:
      extractMetadata in interface com.day.cq.dam.api.handler.AssetHandler
    • processRelated

      public Iterator<? extends com.adobe.granite.asset.api.AssetRelation> processRelated(com.day.cq.dam.api.Asset asset)
      Specified by:
      processRelated in interface com.day.cq.dam.api.handler.AssetHandler
    • processSubAssets

      public List<String> processSubAssets(com.day.cq.dam.api.Asset asset)
      Specified by:
      processSubAssets in interface com.day.cq.dam.api.handler.AssetHandler