import java.util.logging.Logger;
import javax.print.attribute.standard.Destination;
-import javax.xml.transform.dom.DOMSource;
-import org.wamblee.xml.XMLDocument;
import org.wamblee.xmlrouter.common.Id;
import org.wamblee.xmlrouter.config.Transformation;
}
@Override
- public void delivered(String aDocType, Id<DOMSource> aEventId,
- DOMSource aEvent, List<Transformation> aSequence,
+ public void delivered(EventInfo aEvent, List<Transformation> aSequence,
Id<Destination> aDestination, String aDestinationName,
boolean aSuccessFlag) {
if (LOGGER.isLoggable(level)) {
- LOGGER.log(level, "event delivered: document type '" + aDocType +
- "', eventId " + aEventId + ", event '" +
- new XMLDocument(aEvent).print(true) + "', sequence '" +
+ LOGGER.log(level, "event delivered: " + aEvent + ", sequence '" +
getSequenceString(aSequence) + "', destionationId " +
aDestination + ", destinationName '" + aDestinationName + "'");
}
}
@Override
- public void notDelivered(String aDocumentType, Id<DOMSource> aEventId,
- DOMSource aEvent) {
+ public void notDelivered(EventInfo aInfo) {
if (LOGGER.isLoggable(level)) {
- LOGGER.log(level, "event not delivered: document type '" +
- aDocumentType + "', eventId " + aEventId + ", event '" +
- new XMLDocument(aEvent).print(true) + "'");
+ LOGGER.log(level, "event not delivered: " + aInfo);
}
}
}