summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-09-28 00:44:14 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-09-28 09:43:26 -0500
commit87d290dd376514344f7e18cb720e598fcaf7f36c (patch)
tree865935589e01c9bae33dfb846ed2c6866473c852
parent9368ef42cea4e1e46f22628cffaa29fba66cfec6 (diff)
downloadpki-87d290dd376514344f7e18cb720e598fcaf7f36c.zip
pki-87d290dd376514344f7e18cb720e598fcaf7f36c.tar.gz
pki-87d290dd376514344f7e18cb720e598fcaf7f36c.tar.xz
Added version number into server status.
The GetStatus servlet has been modified to include the server version number. Ticket #339
-rw-r--r--base/common/src/com/netscape/cms/servlet/csadmin/GetStatus.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/base/common/src/com/netscape/cms/servlet/csadmin/GetStatus.java b/base/common/src/com/netscape/cms/servlet/csadmin/GetStatus.java
index a648b04..dee3c19 100644
--- a/base/common/src/com/netscape/cms/servlet/csadmin/GetStatus.java
+++ b/base/common/src/com/netscape/cms/servlet/csadmin/GetStatus.java
@@ -67,6 +67,7 @@ public class GetStatus extends CMSServlet {
String state = config.getString("cs.state", "");
String type = config.getString("cs.type", "");
String status = config.getString("cs.status", "unknown");
+ String version = GetStatus.class.getPackage().getImplementationVersion();
try {
XMLObject xmlObj = null;
@@ -78,6 +79,7 @@ public class GetStatus extends CMSServlet {
xmlObj.addItemToContainer(root, "State", state);
xmlObj.addItemToContainer(root, "Type", type);
xmlObj.addItemToContainer(root, "Status", status);
+ xmlObj.addItemToContainer(root, "Version", version);
byte[] cb = xmlObj.toByteArray();
outputResult(httpResp, "application/xml", cb);