In the previous examples, we passed literal parameters picked from a URI path fragment as well as from the request's query parameters to the resource method. However, there are cases when we want to pass a payload in the request body, for example a
POST request. JAX-RS provides two interfaces that can be used: one for handling the inbound entity representation-to-Java de-serialization known as
javax.ws.rs.ext.MessageBodyReader, and the other one for handling the outbound entity Java-to-representation serialization known as
MessageBodyReader de-serializes entities from the message body representation into Java classes.
MessageBodyWriter serializes a Java class to ...