Package com.day.cq.dam.commons.handler
Class SimpleContext
java.lang.Object
com.day.cq.dam.commons.handler.SimpleContext
- All Implemented Interfaces:
Context
Simple context that remembers all metadata and thumbnail images found.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd an exception that occurred while processing an asset.voidaddMetadata(InputStream meta) Add metadata.voidaddThumbnail(BufferedImage image) Add thumbnail image.Return all exceptions found during processing.Return all metadata found, as an array.Return all images found, as an array.
-
Constructor Details
-
SimpleContext
public SimpleContext()
-
-
Method Details
-
getMetadata
Return all metadata found, as an array.- Returns:
- metadata or
null
-
getThumbnails
Return all images found, as an array.- Returns:
- images or
null
-
getExceptions
Return all exceptions found during processing.- Returns:
- exceptions or
null
-
addException
Add an exception that occurred while processing an asset.- Specified by:
addExceptionin interfaceContext- Parameters:
e- exception to add
-
addMetadata
Add metadata.- Specified by:
addMetadatain interfaceContext- Parameters:
meta- metadata
-
addThumbnail
Add thumbnail image.- Specified by:
addThumbnailin interfaceContext- Parameters:
image- buffered image
-