About Question enthuware.ocejws.v6.2.288 :
Posted: Thu Apr 17, 2014 10:02 am
Regarding to this explanation, "you can easily create two new methods in the current JAX-RS resource by adding @Produces annotations."
I think there is another alternative, which is content negotiation:
I think there is another alternative, which is content negotiation:
Code: Select all
// an example to convert a JAXBSource into XML/JSON/text
@Produce({"application\xml", "application\json", "text\plain", "text\html"})
public JAXBSource getResult(){
....
}