users@jersey.java.net

[Jersey] jersey resource returning a csv file, how to change the name of the file instead of using the url?

From: chauzer <chauzer_at_gmail.com>
Date: Mon, 10 Jan 2011 13:20:13 -0800 (PST)

i have a jersey resource that returns a csv file (or any other type of file)
for the user to download. but the filename doesnt have an extension though.
for example if the url is www.google.com/1000, the file to be downloaded
will have the filename "1000" and i set the MIME type to application/csv. Is
there a way I can have the resource return a different file name? i.e.
"test.csv"?

thanks
-- 
View this message in context: http://jersey.576304.n2.nabble.com/jersey-resource-returning-a-csv-file-how-to-change-the-name-of-the-file-instead-of-using-the-url-tp5908632p5908632.html
Sent from the Jersey mailing list archive at Nabble.com.