This is an automated email from the ASF dual-hosted git repository.

orudyy pushed a commit to branch 7.1.x
in repository https://gitbox.apache.org/repos/asf/qpid-broker-j.git

commit b8729b25061098ef903a8670aff9fce3242b0831
Author: Alex Rudyy <[email protected]>
AuthorDate: Wed Feb 5 17:20:56 2020 +0000

    QPID-8406: [Broker-J][WMC] Display connection transport information in web 
management console
    
    (cherry picked from commit c06b962bb9a3914933fc296564d4df2e4fbeb09f)
---
 .../src/main/java/resources/js/qpid/management/Connection.js         | 5 +++++
 .../management-http/src/main/java/resources/showConnection.html      | 5 +++++
 2 files changed, 10 insertions(+)

diff --git 
a/broker-plugins/management-http/src/main/java/resources/js/qpid/management/Connection.js
 
b/broker-plugins/management-http/src/main/java/resources/js/qpid/management/Connection.js
index 85a854a..1b9dcff 100644
--- 
a/broker-plugins/management-http/src/main/java/resources/js/qpid/management/Connection.js
+++ 
b/broker-plugins/management-http/src/main/java/resources/js/qpid/management/Connection.js
@@ -133,6 +133,8 @@ define(["dojo/parser",
                         "protocol",
                         "remoteProcessPid",
                         "createdTime",
+                        "transportInfo",
+                        "transportInfoContainer",
                         "sessionCountLimit"]);
 
             var userPreferences = this.management.userPreferences;
@@ -276,6 +278,9 @@ define(["dojo/parser",
             this.port.innerHTML = 
entities.encode(String(this.connectionData["port"]));
             this.transport.innerHTML = 
entities.encode(String(this.connectionData["transport"]));
             this.protocol.innerHTML = 
entities.encode(String(this.connectionData["protocol"]));
+            var transportInfo = 
entities.encode(String(this.connectionData["transportInfo"]));
+            this.transportInfo.innerHTML = transportInfo;
+            this.transportInfoContainer.style.display = transportInfo === "" ? 
"none": "";
             var remoteProcessPid = this.connectionData["remoteProcessPid"];
             this.remoteProcessPid.innerHTML = 
entities.encode(String(remoteProcessPid ? remoteProcessPid : "N/A"));
             this.sessionCountLimit.innerHTML = 
entities.encode(String(this.connectionData["sessionCountLimit"]));
diff --git 
a/broker-plugins/management-http/src/main/java/resources/showConnection.html 
b/broker-plugins/management-http/src/main/java/resources/showConnection.html
index f005aba..6b31eb3 100644
--- a/broker-plugins/management-http/src/main/java/resources/showConnection.html
+++ b/broker-plugins/management-http/src/main/java/resources/showConnection.html
@@ -67,6 +67,11 @@
             </div>
         </div>
         <div class="clear"></div>
+        <div class="clear transportInfoContainer">
+            <div class="formLabel-labelCell">Transport Info:</div>
+            <div class="transportInfo"></div>
+        </div>
+        <div class="clear"></div>
     </div>
     <br/>
     <div class="connectionStatistics"></div>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to