Package io.wcm.testing.mock.aem.dam
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.-
Field Summary
Fields inherited from interface com.day.cq.dam.api.handler.AssetHandler
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidcreateThumbnails(com.day.cq.dam.api.Asset asset) voidcreateThumbnails(com.day.cq.dam.api.Asset asset, com.day.cq.dam.api.Rendition rendition, Collection<com.day.cq.dam.api.thumbnail.ThumbnailConfig> configs) voidcreateThumbnails(com.day.cq.dam.api.Asset asset, Collection<com.day.cq.dam.api.thumbnail.ThumbnailConfig> configs) voidexportAsset(com.day.cq.dam.api.Asset asset, OutputStream os) com.day.cq.dam.api.metadata.ExtractedMetadataextractMetadata(com.day.cq.dam.api.Asset asset) getImage(com.day.cq.dam.api.Rendition rendition) String[]Iterator<? extends com.adobe.granite.asset.api.AssetRelation>processRelated(com.day.cq.dam.api.Asset asset) processSubAssets(com.day.cq.dam.api.Asset asset) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.day.cq.dam.api.handler.AssetHandler
processSubAssets
-
Constructor Details
-
MockAssetHandler
public MockAssetHandler()
-
-
Method Details
-
getMimeTypes
- Specified by:
getMimeTypesin interfacecom.day.cq.dam.api.handler.AssetHandler
-
getImage
- Specified by:
getImagein interfacecom.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:
getImagein interfacecom.day.cq.dam.api.handler.AssetHandler- Throws:
IOException
-
canHandleSubAssets
public boolean canHandleSubAssets()- Specified by:
canHandleSubAssetsin interfacecom.day.cq.dam.api.handler.AssetHandler
-
createThumbnails
- Specified by:
createThumbnailsin interfacecom.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:
createThumbnailsin interfacecom.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:
createThumbnailsin interfacecom.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:
exportAssetin interfacecom.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:
extractMetadatain interfacecom.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:
processRelatedin interfacecom.day.cq.dam.api.handler.AssetHandler
-
processSubAssets
- Specified by:
processSubAssetsin interfacecom.day.cq.dam.api.handler.AssetHandler
-