users@jersey.java.net

Content-Disposition

From: <amsmota_at_gmail.com>
Date: Thu, 22 Jan 2009 13:36:19 +0000

Hello again.

I have a situation here where I have to set a Content-Disposition header in
my response and I was hoping that I can do that at a annotation, or
configuration, level.

@GET
@Path("/reports/{name}")
@Produces("application/pdf")
@SOMEANNOTATION(""content-disposition","attachment; filename={name}.pdf"
byte[] executePdf(@PathParam("name")String name)

Would that be possible?

Of course I can do it programatically in my HttpConector, but that will
break the "abstractioness" of my infrastructure...

Thxs again.