*/
package jalview.ext.ensembl;
-import jalview.bin.Cache;
-import jalview.util.Platform;
-import jalview.util.StringUtils;
-
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.IOException;
import org.json.simple.parser.ParseException;
+import jalview.util.Platform;
+import jalview.util.StringUtils;
+
/**
* Base class for Ensembl REST service clients
*
static
{
- Cache.addJ2SDirectDatabaseCall("http://rest.ensembl");
- Cache.addJ2SDirectDatabaseCall("https://rest.ensembl");
+ Platform.addJ2SDirectDatabaseCall("http://rest.ensembl");
+ Platform.addJ2SDirectDatabaseCall("https://rest.ensembl");
}
private static final int DEFAULT_READ_TIMEOUT = 5 * 60 * 1000; // 5 minutes
* @see https://github.com/Ensembl/ensembl-rest/wiki/Change-log
* @see http://rest.ensembl.org/info/rest?content-type=application/json
*/
- private static final String LATEST_ENSEMBLGENOMES_REST_VERSION = "9.0";
+ private static final String LATEST_ENSEMBLGENOMES_REST_VERSION = "15.2";
- private static final String LATEST_ENSEMBL_REST_VERSION = "9.0";
+ private static final String LATEST_ENSEMBL_REST_VERSION = "15.2";
private static final String REST_CHANGE_LOG = "https://github.com/Ensembl/ensembl-rest/wiki/Change-log";
InputStream response = connection.getInputStream();
- Platform.timeCheck(null, Platform.TIME_MARK);
+ // Platform.timeCheck(null, Platform.TIME_MARK);
Object ret = Platform.parseJSON(response);
- Platform.timeCheck("EnsemblRestClient.getJSON " + url,
- Platform.TIME_MARK);
+ // Platform.timeCheck("EnsemblRestClient.getJSON " + url,
+ // Platform.TIME_MARK);
return ret;
}