From 967079fdbf2f25c9f5361b5df15c479891da4229 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 3 Aug 2018 15:13:44 +0100 Subject: [PATCH] JAL-3070 web service handle with UIinfo.hasParameters() == true => instanceof ServiceWithParameters --- src/jalview/ws/api/UIinfo.java | 11 +++++++++++ src/jalview/ws/jws2/jabaws2/Jws2Instance.java | 1 + 2 files changed, 12 insertions(+) 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) -- 1.7.10.2