*/
package jalview.ext.ensembl;
+import jalview.analysis.AlignmentUtils;
import jalview.bin.Cache;
import jalview.datamodel.DBRefSource;
import jalview.ws.seqfetcher.DbSourceProxyImpl;
protected static final String PARENT = "Parent";
- protected static final String JSON_ID = "id";
+ protected static final String JSON_ID = AlignmentUtils.VARIANT_ID; // "id";
protected static final String OBJECT_TYPE = "object_type";
* this allows an easy change from http to https in future if needed
*/
ensemblDomain = Cache.getDefault(ENSEMBL_BASEURL,
- DEFAULT_ENSEMBL_BASEURL);
+ DEFAULT_ENSEMBL_BASEURL).trim();
ensemblGenomesDomain = Cache.getDefault(ENSEMBL_GENOMES_BASEURL,
- DEFAULT_ENSEMBL_GENOMES_BASEURL);
+ DEFAULT_ENSEMBL_GENOMES_BASEURL).trim();
domain = ensemblDomain;
}
protected void setDomain(String d)
{
- domain = d;
+ domain = d == null ? null : d.trim();
}
}