Module xorcery.jsonapi.jaxrs
Class JsonMessageBodyReader
Object
JsonMessageBodyReader
- All Implemented Interfaces:
MessageBodyReader<Object>
@Singleton
@Provider
@Consumes({"application/json","application/octet-stream"})
public class JsonMessageBodyReader
extends Object
implements MessageBodyReader<Object>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isReadable
(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) readFrom
(Class<Object> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream)
-
Constructor Details
-
JsonMessageBodyReader
-
-
Method Details
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) - Specified by:
isReadable
in interfaceMessageBodyReader<Object>
-
readFrom
public Object readFrom(Class<Object> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException, WebApplicationException- Specified by:
readFrom
in interfaceMessageBodyReader<Object>
- Throws:
IOException
WebApplicationException
-