Package org.apache.johnzon.jaxrs
Class JohnzonMessageBodyReader<T>
- java.lang.Object
-
- org.apache.johnzon.jaxrs.IgnorableTypes
-
- org.apache.johnzon.jaxrs.JohnzonMessageBodyReader<T>
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<T>
@Consumes({"application/json","*/json","*/*+json","*/x-json","*/javascript","*/x-javascript"}) public class JohnzonMessageBodyReader<T> extends IgnorableTypes implements jakarta.ws.rs.ext.MessageBodyReader<T>
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.johnzon.mapper.Mapper
mapper
-
Constructor Summary
Constructors Constructor Description JohnzonMessageBodyReader()
JohnzonMessageBodyReader(org.apache.johnzon.mapper.Mapper mapper, Collection<String> ignoredTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isReadable(Class<?> rawType, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
T
readFrom(Class<T> rawType, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
-
Methods inherited from class org.apache.johnzon.jaxrs.IgnorableTypes
isIgnored
-
-
-
-
Constructor Detail
-
JohnzonMessageBodyReader
public JohnzonMessageBodyReader()
-
JohnzonMessageBodyReader
public JohnzonMessageBodyReader(org.apache.johnzon.mapper.Mapper mapper, Collection<String> ignoredTypes)
-
-
Method Detail
-
isReadable
public boolean isReadable(Class<?> rawType, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
- Specified by:
isReadable
in interfacejakarta.ws.rs.ext.MessageBodyReader<T>
-
readFrom
public T readFrom(Class<T> rawType, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException
- Specified by:
readFrom
in interfacejakarta.ws.rs.ext.MessageBodyReader<T>
- Throws:
IOException
-
-