* @event.severity ERROR
*/
void catalogResolverNotCreated(Object source, String message);
+
+ /**
+ * Warning in an image.
+ * @param source the event source
+ * @param message warning
+ * @event.severity WARN
+ */
+ void imageWarning(Object source, String message);
}
<message key="locator">[ (See position {loc})| (See {#gatherContextInfo})| (No context info available)]</message>
<message key="imageNotFound">Image not found.[ URI: {uri}.]{{locator}}</message>
<message key="imageError">Image not available.[ URI: {uri}.] Reason:[ {reason}][ {e}]{{locator}}</message>
+ <message key="imageWarning">Image warning.[ URI: {uri}.] Reason:[ {message}][ {e}]{{locator}}</message>
<message key="imageIOError">I/O error while loading image.[ URI: {uri}.][ Reason: {ioe}]{{locator}}</message>
<message key="ifoNoIntrinsicSize">The intrinsic dimensions of an instream-foreign-object could not be determined.{{locator}}</message>
<message key="uriError">Error while handling URI: {uri}. Reason: {e}{{locator}}</message>
context.putHints(hints);
ImageFlavor[] flavors = imageHandlerRegistry.getSupportedFlavors(context);
+ info.getCustomObjects().put("warningincustomobject", true);
org.apache.xmlgraphics.image.loader.Image img = manager.getImage(
info, flavors,
hints, sessionContext);
+ if (info.getCustomObjects().get("warning") != null) {
+ ResourceEventProducer eventProducer = ResourceEventProducer.Provider.get(
+ getUserAgent().getEventBroadcaster());
+ eventProducer.imageWarning(this, (String)info.getCustomObjects().get("warning"));
+ }
+
try {
drawImage(img, rect, context);
} catch (IOException ioe) {