Package com.day.cq.dam.commons.handler
Class SimpleContext
- java.lang.Object
-
- com.day.cq.dam.commons.handler.SimpleContext
-
-
Constructor Summary
Constructors Constructor Description SimpleContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddException(ProcessorException e)Add an exception that occurred while processing an asset.voidaddMetadata(java.io.InputStream meta)Add metadata.voidaddThumbnail(java.awt.image.BufferedImage image)Add thumbnail image.ProcessorException[]getExceptions()Return all exceptions found during processing.java.io.InputStream[]getMetadata()Return all metadata found, as an array.java.awt.image.BufferedImage[]getThumbnails()Return all images found, as an array.
-
-
-
Method Detail
-
getMetadata
public java.io.InputStream[] getMetadata()
Return all metadata found, as an array.- Returns:
- metadata or
null
-
getThumbnails
public java.awt.image.BufferedImage[] getThumbnails()
Return all images found, as an array.- Returns:
- images or
null
-
getExceptions
public ProcessorException[] getExceptions()
Return all exceptions found during processing.- Returns:
- exceptions or
null
-
addException
public void addException(ProcessorException e)
Add an exception that occurred while processing an asset.- Specified by:
addExceptionin interfaceContext- Parameters:
e- exception to add
-
addMetadata
public void addMetadata(java.io.InputStream meta)
Add metadata.- Specified by:
addMetadatain interfaceContext- Parameters:
meta- metadata
-
addThumbnail
public void addThumbnail(java.awt.image.BufferedImage image)
Add thumbnail image.- Specified by:
addThumbnailin interfaceContext- Parameters:
image- buffered image
-
-