import jalview.util.Platform;
+import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
+import java.net.URL;
/*
* A JavaScript-only proxy for com.sun.jersey.api.client.WebResource
*/
public ClientResponse get(Class<?> c)
{
- return new ClientResponse(Platform.getFileAsString(uri.toString()),
- encoding);
+ try
+ {
+ return new ClientResponse(new URL(uri.toString()), encoding);
+ } catch (MalformedURLException e)
+ {
+ return null;
+ }
}
}