This is a useful feature in general and something that would best be
achieved by us adding that to the standard message body reader/writer.
Is it easy for you to upgrade to a newer version of Jersey or do you
have to stick with a particular one?
Martin
On 2.10.2011 8:57, Lukas Lentner wrote:
>
> Hi,
>
> I'm checking out Jersey and I find it most suitable for my project.
> But I have a question about xml processing/header:
>
> Is it possible to add the xml stylesheet header automatically to every
> response? The problem is also that I would like to reference to a
> transform.xsl in the main application folder:
> http://localhost/appfolder/transform.xsl
>
> Of course I don't want to hardcode the absolute URL in the code but I
> think it should be absolute in the xml! So I would like to use the
> uriInfo to build the url (that's not possible in an annotation).
>
> So: How do I hack into the unmarshalling process adding a xml header ???
>
> Thankx
>
> Lukas Lentner
>