From 6b032f32d377a8bd5f12f2bd67d19bb80580a960 Mon Sep 17 00:00:00 2001 From: jprocter Date: Tue, 30 Aug 2011 11:23:58 +0100 Subject: [PATCH] retrieve URL for datasource of packed set --- src/jalview/ws/rest/HttpResultSet.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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; + } + } + } -- 1.7.10.2