Use the isReadable and isWriteable methods to check the media type

In the WebSphere Application Server Java Platform, Enterprise Edition (Java EE) 7 JAX-RS 2.0 implementation, MessageBodyReader and MessageBodyWriter interfaces with @Consumes and @Produces annotations might restrict the media types that they support. Use the the isReadable and isWriteable methods to check the media types that are specified on the @Consumes and @Produces annotations.

For more information on JAX-RS 2.0 behavior changes, see the following resource: JAX-RS 2.0 behavior changes.