Package org.apache.johnzon.jaxrs
Class JsrProvider
- java.lang.Object
-
- org.apache.johnzon.jaxrs.DelegateProvider<jakarta.json.JsonStructure>
-
- org.apache.johnzon.jaxrs.JsrProvider
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<jakarta.json.JsonStructure>
,jakarta.ws.rs.ext.MessageBodyWriter<jakarta.json.JsonStructure>
@Provider @Produces("application/json") @Consumes("application/json") public class JsrProvider extends DelegateProvider<jakarta.json.JsonStructure>
-
-
Constructor Summary
Constructors Constructor Description JsrProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.json.JsonStructure
readFrom(Class<jakarta.json.JsonStructure> rawType, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
protected boolean
shouldThrowNoContentExceptionOnEmptyStreams()
-
Methods inherited from class org.apache.johnzon.jaxrs.DelegateProvider
getSize, isReadable, isWriteable, writeTo
-
-
-
-
Method Detail
-
readFrom
public jakarta.json.JsonStructure readFrom(Class<jakarta.json.JsonStructure> 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<jakarta.json.JsonStructure>
- Overrides:
readFrom
in classDelegateProvider<jakarta.json.JsonStructure>
- Throws:
IOException
-
shouldThrowNoContentExceptionOnEmptyStreams
protected boolean shouldThrowNoContentExceptionOnEmptyStreams()
- Overrides:
shouldThrowNoContentExceptionOnEmptyStreams
in classDelegateProvider<jakarta.json.JsonStructure>
-
-