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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisReadable(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:
isReadablein 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:
readFromin interfaceMessageBodyReader<Object>- Throws:
IOExceptionWebApplicationException
-