From: jprocter Date: Tue, 30 Aug 2011 10:23:58 +0000 (+0100) Subject: retrieve URL for datasource of packed set X-Git-Tag: Release_2_7~70 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=6b032f32d377a8bd5f12f2bd67d19bb80580a960;p=jalview.git retrieve URL for datasource of packed set --- diff --git a/src/jalview/ws/rest/HttpResultSet.java b/src/jalview/ws/rest/HttpResultSet.java index 1c87196..c360287 100644 --- a/src/jalview/ws/rest/HttpResultSet.java +++ b/src/jalview/ws/rest/HttpResultSet.java @@ -197,4 +197,19 @@ public class HttpResultSet extends FileParse super.finalize(); } + /** + * + * @return the URL that this result set read data from. + */ + public String getUrl() + { + try { + return cachedRequest.getURI().toURL().toString(); + } catch (Exception x) + { + x.printStackTrace(); + return null; + } + } + }