JAX-RS: returning concrete class instance from method with declared abstract return type

Viewed 1594

I have some REST service using JAX-RS and Jackson. My customer wants to have abstract class as service's return type and I have no clue how to make JAX-RS client return instances of concrete sub-classes. Is this possible for both XML and JSON representation? If so, will appreciate samples and/or links.

3 Answers
Related