From de7d1413972fc92cc2f536866b86eec54bd52d14 Mon Sep 17 00:00:00 2001 From: Erwin Dondorp Date: Wed, 1 Dec 2021 10:17:15 +0100 Subject: [PATCH] ARTEMIS-3570 also decode routing-types --- .../src/main/webapp/plugin/js/components/browse.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/browse.js b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/browse.js index 8527b799e1..71f0d603ae 100644 --- a/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/browse.js +++ b/artemis-hawtio/artemis-plugin/src/main/webapp/plugin/js/components/browse.js @@ -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") {