users@jersey.java.net

[Jersey] Re: dynamic representations?

From: Kristian Rink <kawazu428_at_googlemail.com>
Date: Tue, 12 Apr 2011 14:02:55 +0200

Hi Daniel;

and first off, thanks a bunch for your comment on that, much
appreciated. :)

Am Tue, 12 Apr 2011 11:30:24 +0200
schrieb Daniel Manzke <daniel.manzke_at_googlemail.com>:
> But it must be something like "return
> Response.ok(myInputStreamOrEntity).type("application/pdf").build();"
>
> I this cases my URLs end with the name of File, so the clien is
> expecting "PDF" if it the URL ends with.

Neat, thanks, that indeed does exactly what I want. Jersey always feels
like a pretty friendly framework in many respects. Now to actually get
real work done. :)

Thanks again and all the best,
Kristian