From 000ba13c219256c35a919d4d9da95b62323fb948 Mon Sep 17 00:00:00 2001 From: hansonr Date: Sun, 11 Nov 2018 04:26:10 -0600 Subject: [PATCH] adds explicit AJAX-allowed --- src/jalview/ext/ensembl/EnsemblRestClient.java | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 1.7.10.2