It's no problem for me to upgrade.
Is there a newer version which has this feature?
(I'm not talking about the XmlHeader Annotation, cause it's a) not automatically added and b) absolut URLs must be hardcoded in the code)
Thankx
Lukas
-----Ursprüngliche Nachricht-----
An:users_at_jersey.java.net;
Von:Martin Matula <martin.matula_at_oracle.com>
Gesendet:Di 04.10.2011 03:16
Betreff:[Jersey] Re: XmlHeader automated
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