gmantele / vollt

Java libraries implementing the IVOA protocol: ADQL, UWS and TAP
http://cdsportal.u-strasbg.fr/taptuto/
29 stars 28 forks source link

Is there a way to activate the optional size and mime-type for a UWS result? #66

Closed almicol closed 6 years ago

almicol commented 6 years ago

According to the UWS 1.1: http://www.ivoa.net/documents/UWS/20161024/REC-UWS-1.1-20161024.html#resultList it is possible to add size and mime-type to the results (e.g. of a async TAP query). Does TAPLIB support this feature, and if yes, how? The use case I have is simple: some of the TAP queries can return various GBytes of results; it is useful to inform the user so that she can ensure to download the results on a disk with enough space available... Merci Gregory!

gmantele commented 6 years ago

Yes, this feature is now supported. You have nothing special to do...just use the last release (i.e. TAP-Lib 2.2). The TAP library detects automatically the format and the size of the result and write it in the job description.

For proof, look at: http://gaia.ari.uni-heidelberg.de/tap/async/1521111663234 This TAP service uses the last release of TAP-Lib and does not do anything special....just a simple configuration file.

gmantele commented 6 years ago

Did you succeed to use this feature?

almicol commented 6 years ago

We have not incorporated yet your latest version... I guess you can close this one now, in case it does not work I will not be shy... ;) :) Thanks!