import java.beans.PropertyChangeSupport;
import java.io.IOException;
import java.net.MalformedURLException;
-import java.net.URISyntaxException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
{
private static final String SLIVKA_HOST_URLS = "SLIVKAHOSTURLS";
- private static final String COMPBIO_SLIVKA = "https://www.compbio.dundee.ac.uk/slivka";
+ private static final String COMPBIO_SLIVKA = "https://www.compbio.dundee.ac.uk/slivka/";
private static SlivkaWSDiscoverer instance = null;
{
Cache.log.info(url);
SlivkaClient client;
- try
- {
- client = new SlivkaClient(url);
- } catch (URISyntaxException e)
- {
- e.printStackTrace();
- continue;
- }
+ client = new SlivkaClient(url);
try
{
for (SlivkaService service : client.getServices())
{
List<?> services = new SlivkaClient(url).getServices();
return services.isEmpty() ? STATUS_NO_SERVICES : STATUS_OK;
- } catch (IOException | URISyntaxException e)
+ } catch (IOException e)
{
+ Cache.log.error("Slivka could not retrieve services list", e);
return STATUS_INVALID;
}
}