ARTEMIS-3570 also decode routing-types

This commit is contained in:
Erwin Dondorp 2021-12-01 10:17:15 +01:00 committed by clebertsuconic
parent dcd993d8e4
commit de7d141397
1 changed files with 12 additions and 0 deletions

View File

@ -826,6 +826,14 @@ var Artemis;
return enc > -1 && enc < 9 ? amqpEncodingLabels[enc] : enc;
}
var routingTypes = ["multicast", "anycast"];
function formatRoutingType(rt) {
if (isNaN(rt) || typeof rt !== "number") {
return enc;
}
return rt > -1 && rt < 2 ? routingTypes[rt] : rt;
}
function createProperties(message) {
var properties = [];
angular.forEach(message, function (value, key) {
@ -839,6 +847,10 @@ var Artemis;
v2 += " (" + formatAmqpEncoding(v2) + ")";
} else if(k2 === "_AMQ_NotifTimestamp") {
v2 += " (" + formatTimestamp(v2) + ")";
} else if(k2 === "_AMQ_ROUTING_TYPE") {
v2 += " (" + formatRoutingType(v2) + ")";
} else if(k2 === "_AMQ_ORIG_ROUTING_TYPE") {
v2 += " (" + formatRoutingType(v2) + ")";
} else if(k2 === "extraProperties._AMQ_ACTUAL_EXPIRY") {
v2 += " (" + formatTimestamp(v2) + ")";
} else if(k2 === "messageAnnotations.x-opt-ACTUAL-EXPIRY") {