From: hansonr Date: Sun, 11 Nov 2018 10:26:10 +0000 (-0600) Subject: adds explicit AJAX-allowed X-Git-Tag: Release_2_11_4_0~45^2~18^2~417 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=000ba13c219256c35a919d4d9da95b62323fb948;p=jalview.git adds explicit AJAX-allowed --- diff --git a/src/jalview/ext/ensembl/EnsemblRestClient.java b/src/jalview/ext/ensembl/EnsemblRestClient.java index 79c9a40..fa626cb 100644 --- a/src/jalview/ext/ensembl/EnsemblRestClient.java +++ b/src/jalview/ext/ensembl/EnsemblRestClient.java @@ -20,6 +20,7 @@ */ package jalview.ext.ensembl; +import jalview.bin.Cache; import jalview.bin.Jalview; import jalview.util.StringUtils; @@ -49,6 +50,12 @@ import org.json.simple.parser.JSONParser; */ abstract class EnsemblRestClient extends EnsemblSequenceFetcher { + + static { + Cache.addJ2SDirectDatabaseCall("http://rest.ensembl"); + Cache.addJ2SDirectDatabaseCall("https://rest.ensembl"); + } + private static final int DEFAULT_READ_TIMEOUT = 5 * 60 * 1000; // 5 minutes private static final int CONNECT_TIMEOUT_MS = 10 * 1000; // 10 seconds