From 608fe7cbca00e2c7b293f74e066da5dc04a9775c Mon Sep 17 00:00:00 2001 From: Margarida Castro Neves Date: Thu, 27 Feb 2014 12:14:43 +0100 Subject: [PATCH] Added DataLink support --- .../uk/ac/starlink/splat/vo/SSAQuery.java | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/splat/src/main/uk/ac/starlink/splat/vo/SSAQuery.java b/splat/src/main/uk/ac/starlink/splat/vo/SSAQuery.java index 8000a347d5..8a4d488365 100644 --- a/splat/src/main/uk/ac/starlink/splat/vo/SSAQuery.java +++ b/splat/src/main/uk/ac/starlink/splat/vo/SSAQuery.java @@ -87,6 +87,9 @@ public class SSAQuery /** The StarTable formed from the getData Parameters of the query */ private GetDataTable getDataTable = null; + + /** The DataLink input parameters */ + private DataLinkParams dataLinkParams = null; /** * Create an instance with the given base URL for an SSA service. @@ -291,6 +294,23 @@ public GetDataTable getGetDataTable() { return getDataTable; } + + /** + * Set the DataLink parameters + */ + public void setDataLinkParams( DataLinkParams dlparams ) + { + this.dataLinkParams = dlparams; + } + + /** + * Get then getDataTable, if defined, if not return null. + */ + public DataLinkParams getDataLinkParams() + { + return dataLinkParams; + } + /** * Get the constructed query as a URL. This should be used to contact the * server and the content downloaded as a VOTable (which should then be @@ -302,6 +322,7 @@ public URL getQueryURL() return new URL(getQueryURLText()); } + public String getQueryURLText() throws UnsupportedEncodingException {