From: Jim Procter Date: Fri, 3 Aug 2018 14:13:44 +0000 (+0100) Subject: JAL-3070 web service handle with UIinfo.hasParameters() == true => instanceof Service... X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=967079fdbf2f25c9f5361b5df15c479891da4229;p=jalview.git JAL-3070 web service handle with UIinfo.hasParameters() == true => instanceof ServiceWithParameters --- diff --git a/src/jalview/ws/api/UIinfo.java b/src/jalview/ws/api/UIinfo.java index 2cffa84..01fb809 100644 --- a/src/jalview/ws/api/UIinfo.java +++ b/src/jalview/ws/api/UIinfo.java @@ -128,4 +128,15 @@ public class UIinfo // TODO Auto-generated method stub return null; } + + /** + * + * @return true if the service has parameters (ie is instance of + * jalview.ws.api.ServiceWithParameters) + */ + public boolean hasParameters() + { + // TODO Auto-generated method stub + return false; + } } \ No newline at end of file diff --git a/src/jalview/ws/jws2/jabaws2/Jws2Instance.java b/src/jalview/ws/jws2/jabaws2/Jws2Instance.java index 6097bdf..3c409af 100644 --- a/src/jalview/ws/jws2/jabaws2/Jws2Instance.java +++ b/src/jalview/ws/jws2/jabaws2/Jws2Instance.java @@ -186,6 +186,7 @@ public class Jws2Instance extends ServiceWithParameters private boolean hasParams = false, lookedForParams = false; + @Override public boolean hasParameters() { if (!lookedForParams)