X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fws%2Fdbsources%2Fdas%2Fdatamodel%2FDasSourceRegistry.java;h=e0f7f7028d0de347c6a9183463165da3d0f6cde9;hb=e957648a02a9e25795a92a4f39a5e3c1e7adb230;hp=04a1b6054295dc59094406485a6c52f874e031cb;hpb=b2f9a8d7bce642ff4011bc6d49e02bb0569fbb11;p=jalview.git diff --git a/src/jalview/ws/dbsources/das/datamodel/DasSourceRegistry.java b/src/jalview/ws/dbsources/das/datamodel/DasSourceRegistry.java index 04a1b60..e0f7f70 100644 --- a/src/jalview/ws/dbsources/das/datamodel/DasSourceRegistry.java +++ b/src/jalview/ws/dbsources/das/datamodel/DasSourceRegistry.java @@ -1,23 +1,29 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.1) - * Copyright (C) 2014 The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors * * This file is part of Jalview. * * Jalview is free software: you can redistribute it and/or * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + * as published by the Free Software Foundation, either version 3 + * of the License, or (at your option) any later version. * * Jalview is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty * of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License along with Jalview. If not, see . + * You should have received a copy of the GNU General Public License + * along with Jalview. If not, see . * The Jalview Authors are detailed in the 'AUTHORS' file. */ package jalview.ws.dbsources.das.datamodel; +import jalview.bin.Cache; +import jalview.ws.dbsources.das.api.DasSourceRegistryI; +import jalview.ws.dbsources.das.api.jalviewSourceI; + import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; @@ -37,10 +43,6 @@ import org.biodas.jdas.schema.sources.SOURCE; import org.biodas.jdas.schema.sources.SOURCES; import org.biodas.jdas.schema.sources.VERSION; -import jalview.bin.Cache; -import jalview.ws.dbsources.das.api.DasSourceRegistryI; -import jalview.ws.dbsources.das.api.jalviewSourceI; - /** * */ @@ -54,7 +56,8 @@ public class DasSourceRegistry implements DasSourceRegistryI, private Hashtable localSources = null; - public static String DEFAULT_REGISTRY = "http://www.dasregistry.org/das/"; + // public static String DEFAULT_REGISTRY = "http://www.dasregistry.org/das/"; + public static String DEFAULT_REGISTRY = "http://www.ebi.ac.uk/das-srv/registry/das/"; /** * true if thread is running and we are talking to DAS registry service @@ -66,6 +69,7 @@ public class DasSourceRegistry implements DasSourceRegistryI, return loadingDasSources; } + @Override public String getDasRegistryURL() { String registry = jalview.bin.Cache.getDefault("DAS_REGISTRY_URL", @@ -147,9 +151,8 @@ public class DasSourceRegistry implements DasSourceRegistryI, return dsrc; } catch (Exception ex) { - System.err.println("Failed to contact DAS1 registry at " - + registryURL); - ex.printStackTrace(); + System.out.println("DAS1 registry at " + registryURL + + " no longer exists"); return new ArrayList(); } } @@ -256,8 +259,8 @@ public class DasSourceRegistry implements DasSourceRegistryI, } /* - * - */ + * + */ @Override public jalviewSourceI createLocalSource(String url, String name,