* a Response.
* @param event
*/
void handleAsynchronousInfo(Object async){
if (async instanceof DMPEventDMO){
DMPEventDMO event = (DMPEventDMO) async;
if (controllerTracing)
logger.finest("handleAsynchronousInfo() got event:\n\n" + event.toOIF() + "\n\n");
if (event.getListenerID() == null){
if (centralEventHandler != null)
centralEventHandler.handleEventCentrally(event);
logger.severe("handleAsynchronousInfo() - received event with no listenerID: " + event.toOIF());
return;
}
ResponseCallback cb = eventHandlers.get(event.getListenerID());
if (cb == null){
logger.severe("handleAsynchronousInfo() - couldn't get callback for event with listenerID: " + event.getListenerID());
}
else{
// Set the handleID on the event so that the callback will know how to route the event
event.setHandlerID(cb.getRequest().getHandlerID());
if ( (originatorID != null) && (event.getOriginatorID() != null)){
if (originatorID == event.getOriginatorID())
event.setMyOwnEvent(true);
}
cb.getEventHandler().handleEvent(event);
}
}