Interface MessageBodyReader<T>

Type Parameters:
T - Java type supported by the provider

public interface MessageBodyReader<T>
Contract for a provider that supports the conversion of a stream to a Java type. A MessageBodyReader implementation may be annotated with Consumes to restrict the media types for which it will be considered suitable. The MessageBodyReader pipeline is executed if the matching resource method declares an entity parameter or uses at least one FormParam.

Providers implementing MessageBodyReader contract must be either programmatically registered in a JAX-RS runtime or must be annotated with @Provider annotation to be automatically discovered by the JAX-RS runtime during a provider scanning phase.

Since:
1.0
See Also: