From: Sasha Sherstnev Date: Mon, 30 Sep 2013 13:27:18 +0000 (+0100) Subject: Add Jabaws version string available in Services X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a3c9dabc9438b34a939bd41b2bee97531724580d;p=jabaws.git Add Jabaws version string available in Services --- diff --git a/webservices/compbio/ws/client/Services.java b/webservices/compbio/ws/client/Services.java index 87ef1d2..cf978f8 100644 --- a/webservices/compbio/ws/client/Services.java +++ b/webservices/compbio/ws/client/Services.java @@ -60,6 +60,9 @@ public enum Services { return Service.create(url, qname); } + public String getJabawsVersion() { + return JABAService.JABAWS_VERSION; + } public static String toString(Set services) { if (services == null || services.isEmpty()) { return "No known services...\n"; @@ -375,7 +378,6 @@ public enum Services { String reference; String version; String moreinfo; - final static String jabaws_version = "2.1"; final static String line_delimiter = "\n"; private ServiceInfo() { @@ -392,7 +394,7 @@ public enum Services { @Override public String toString() { String value = "SERVICE: " + service + " version " + version + line_delimiter + "\n"; - value += "JABAWS v. " + jabaws_version + line_delimiter; + value += "JABAWS v. " + JABAService.JABAWS_VERSION + line_delimiter; value += "REFERENCE: " + reference + line_delimiter + "\n"; value += "MORE INFORMATION: " + moreinfo + line_delimiter; return value;