Package org.apache.johnzon.jaxrs
Class JsrMessageBodyReader
- java.lang.Object
-
- org.apache.johnzon.jaxrs.JsrMessageBodyReader
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<jakarta.json.JsonStructure>
@Consumes({"application/json","*/json","*/*+json","*/x-json","*/javascript","*/x-javascript"}) public class JsrMessageBodyReader extends Object implements jakarta.ws.rs.ext.MessageBodyReader<jakarta.json.JsonStructure>
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
closeStream
private jakarta.json.JsonReaderFactory
factory
-
Constructor Summary
Constructors Constructor Description JsrMessageBodyReader()
JsrMessageBodyReader(jakarta.json.JsonReaderFactory factory, boolean closeStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isReadable(Class<?> aClass, Type type, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
jakarta.json.JsonStructure
readFrom(Class<jakarta.json.JsonStructure> jsonStructureClass, Type type, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,String> stringStringMultivaluedMap, InputStream inputStream)
-
-
-
Method Detail
-
isReadable
public boolean isReadable(Class<?> aClass, Type type, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
- Specified by:
isReadable
in interfacejakarta.ws.rs.ext.MessageBodyReader<jakarta.json.JsonStructure>
-
readFrom
public jakarta.json.JsonStructure readFrom(Class<jakarta.json.JsonStructure> jsonStructureClass, Type type, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,String> stringStringMultivaluedMap, InputStream inputStream) throws IOException, jakarta.ws.rs.WebApplicationException
- Specified by:
readFrom
in interfacejakarta.ws.rs.ext.MessageBodyReader<jakarta.json.JsonStructure>
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-
-