* service
*
* @author gmcarstairs
- *
+ * @see http://rest.ensembl.org/documentation/info/xref_id
*/
class EnsemblXref extends EnsemblRestClient
{
+ /**
+ * Constructor given the target domain to fetch data from
+ *
+ * @param d
+ */
+ public EnsemblXref(String d)
+ {
+ super(d);
+ }
+
@Override
public String getDbName()
{
@Override
protected URL getUrl(List<String> ids) throws MalformedURLException
{
- // TODO Auto-generated method stub
- return null;
+ return getUrl(ids.get(0));
}
@Override
*/
protected URL getUrl(String identifier)
{
- String url = ENSEMBL_REST + "/xrefs/id/" + identifier
+ String url = getDomain() + "/xrefs/id/" + identifier
+ "?content-type=application/json&all_levels=1";
try
{