@Provider
 @Consumes(value={"application/json","*/json","*/*+json","*/x-json","*/javascript","*/x-javascript"})
public class JohnzonMessageBodyReader<T>
extends IgnorableTypes
implements javax.ws.rs.ext.MessageBodyReader<T>
| Modifier and Type | Field and Description | 
|---|---|
| private org.apache.johnzon.mapper.Mapper | mapper | 
| Constructor and Description | 
|---|
| JohnzonMessageBodyReader() | 
| JohnzonMessageBodyReader(org.apache.johnzon.mapper.Mapper mapper,
                        Collection<String> ignoredTypes) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | isReadable(Class<?> rawType,
          Type genericType,
          Annotation[] annotations,
          javax.ws.rs.core.MediaType mediaType) | 
| T | readFrom(Class<T> rawType,
        Type genericType,
        Annotation[] annotations,
        javax.ws.rs.core.MediaType mediaType,
        javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
        InputStream entityStream) | 
isIgnoredpublic JohnzonMessageBodyReader()
public JohnzonMessageBodyReader(org.apache.johnzon.mapper.Mapper mapper,
                                Collection<String> ignoredTypes)
public boolean isReadable(Class<?> rawType, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
isReadable in interface javax.ws.rs.ext.MessageBodyReader<T>public T readFrom(Class<T> rawType, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException
readFrom in interface javax.ws.rs.ext.MessageBodyReader<T>IOExceptionCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.