Thread oldthread = null;
- @Override
public void run()
{
if (running && oldthread != null && oldthread.isAlive())
}
- @Override
public void attachWSMenuEntry(JMenu wsmenu, final AlignFrame alignFrame)
{
if (running || services == null || services.size() == 0)
getDiscoverer().addPropertyChangeListener(new PropertyChangeListener()
{
- @Override
public void propertyChange(PropertyChangeEvent evt)
{
System.out.println("Changesupport: There are now "
: new Vector<Jws2Instance>(services);
}
+ /**
+ * test the given URL with the JabaWS test code
+ * @param foo
+ * @return
+ */
+ public static boolean testServiceUrl(URL foo)
+ {
+ try {
+ compbio.ws.client.WSTester.main(new String[] { "-h="+foo.toString()});
+ } catch (Exception e)
+ {
+ return false;
+ }
+ catch (OutOfMemoryError e)
+ {
+ return false;
+ }
+ catch (Error e)
+ {
+ return false;
+ }
+ return true;
+ }
+
}