X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=webservices%2Fcompbio%2Fws%2Fclient%2FMetadataHelper.java;h=20a9f76a22e7442e4c03d45fed828597d5cfdc7c;hb=b2a2fdc2bd95a64b3908d8ea2f31270b6c7199d3;hp=d5d8b06094ae94245f4c6b23396fd2c5ee070d7b;hpb=cb8e1cabf853c4d952ee1bbcda542a5d231db80a;p=jabaws.git 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