JAL-1001 - hack to extract the global URL for a service from the 'MORE INFORMATION...
[jalview.git] / src / jalview / ws / jws2 / jabaws2 / Jws2Instance.java
index c8ed885..dfe5188 100644 (file)
@@ -25,7 +25,7 @@ public class Jws2Instance
   public String action;
   public JABAService service;
   public String description;
-
+  public String docUrl;
   public Jws2Instance(String hosturl, String serviceType, String action, String description, 
           JABAService service)
   {
@@ -35,7 +35,13 @@ public class Jws2Instance
     this.service = service;
     this.action=action;
     this.description = description;
-    
+    int p=description.indexOf("MORE INFORMATION:");
+    if (p>-1)
+    {
+      docUrl = description.substring(description.indexOf("http",p)).trim();
+      if (docUrl.indexOf('\n')>-1) { docUrl = docUrl.substring(0,docUrl.indexOf("\n")).trim(); }
+      
+    }
   }
 
   PresetManager presets = null;