16.2. Content Marshalling with @Provider classes
The JAX-RS specification lets you plug in your own readers and writers for request or response bodies. To do so, annotate a class with
@Provider
and specify the @Produces
types for a reader. You must also implement a MessageBodyReader
and a MessageBodyWriter
interface.