From: Sasha Sherstnev Date: Thu, 19 Sep 2013 13:44:57 +0000 (+0100) Subject: JWS-17 re-design behaviour of Option.toString X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=e079a1be96263ca813cc323927afa114cd2cde5b;p=jabaws.git JWS-17 re-design behaviour of Option.toString --- diff --git a/datamodel/compbio/metadata/Option.java b/datamodel/compbio/metadata/Option.java index 93361dd..7d9e9e4 100644 --- a/datamodel/compbio/metadata/Option.java +++ b/datamodel/compbio/metadata/Option.java @@ -208,7 +208,11 @@ public class Option implements Argument { value += "Default value: " + this.defaultValue + SysPrefs.newlinechar; } if (null != this.furtherDetails) { + if (null != this.basicURL) { value += "URL: " + this.basicURL + this.furtherDetails + SysPrefs.newlinechar; + }else { + value += "Relative URL: " + this.furtherDetails + SysPrefs.newlinechar; + } } else { value += "URL: unknown URL" + SysPrefs.newlinechar; } diff --git a/webservices/compbio/ws/client/MetadataHelper.java b/webservices/compbio/ws/client/MetadataHelper.java index d5d8b06..20a9f76 100644 --- a/webservices/compbio/ws/client/MetadataHelper.java +++ b/webservices/compbio/ws/client/MetadataHelper.java @@ -44,7 +44,26 @@ public class MetadataHelper { * @param msaws * web service proxy * @return List of options supported by a web service - * @throws MalformedURLException + */ + static List> getParametersList(Metadata msaws) { + assert msaws != null; + RunnerConfig config = msaws.getRunnerOptions(); + if (config == null) { + return Collections.emptyList(); + } + return config.getArguments(); + } + + /** + * Returns a list of options supported by web service + * + * @param + * web service type + * @param msaws + * web service proxy + * @param host + * the server URL, as a string + * @return List of options supported by a web service */ static List> getParametersList(Metadata msaws, String host) throws MalformedURLException { assert msaws != null; @@ -59,11 +78,6 @@ public class MetadataHelper { return opts; } - static List> getParametersList(Metadata msaws) throws MalformedURLException { - return getParametersList (msaws, "http://unknown.jabaws.server.ac.uk"); - } - - /** * Returns an objects from which the list of presets supported by web * service can be obtained