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 void
addException(ProcessorException e)
Add an exception that occurred while processing an asset.void
addMetadata(java.io.InputStream meta)
Add metadata.void
addThumbnail(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:
addException
in interfaceContext
- Parameters:
e
- exception to add
-
addMetadata
public void addMetadata(java.io.InputStream meta)
Add metadata.- Specified by:
addMetadata
in interfaceContext
- Parameters:
meta
- metadata
-
addThumbnail
public void addThumbnail(java.awt.image.BufferedImage image)
Add thumbnail image.- Specified by:
addThumbnail
in interfaceContext
- Parameters:
image
- buffered image
-
-