Class FHIRJsonPatchProvider

  • All Implemented Interfaces:
    javax.ws.rs.ext.MessageBodyReader<jakarta.json.JsonArray>, javax.ws.rs.ext.MessageBodyWriter<jakarta.json.JsonArray>

    @Consumes("application/json-patch+json")
    @Produces("application/json-patch+json")
    public class FHIRJsonPatchProvider
    extends Object
    implements javax.ws.rs.ext.MessageBodyReader<jakarta.json.JsonArray>, javax.ws.rs.ext.MessageBodyWriter<jakarta.json.JsonArray>
    • Constructor Detail

      • FHIRJsonPatchProvider

        public FHIRJsonPatchProvider​(javax.ws.rs.RuntimeType runtimeType)
    • Method Detail

      • isReadable

        public boolean isReadable​(Class<?> type,
                                  Type genericType,
                                  Annotation[] annotations,
                                  javax.ws.rs.core.MediaType mediaType)
        Specified by:
        isReadable in interface javax.ws.rs.ext.MessageBodyReader<jakarta.json.JsonArray>
      • readFrom

        public jakarta.json.JsonArray readFrom​(Class<jakarta.json.JsonArray> type,
                                               Type genericType,
                                               Annotation[] annotations,
                                               javax.ws.rs.core.MediaType mediaType,
                                               javax.ws.rs.core.MultivaluedMap<String,​String> httpHeaders,
                                               InputStream entityStream)
                                        throws IOException,
                                               javax.ws.rs.WebApplicationException
        Specified by:
        readFrom in interface javax.ws.rs.ext.MessageBodyReader<jakarta.json.JsonArray>
        Throws:
        IOException
        javax.ws.rs.WebApplicationException
      • isWriteable

        public boolean isWriteable​(Class<?> type,
                                   Type genericType,
                                   Annotation[] annotations,
                                   javax.ws.rs.core.MediaType mediaType)
        Specified by:
        isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<jakarta.json.JsonArray>
      • writeTo

        public void writeTo​(jakarta.json.JsonArray t,
                            Class<?> type,
                            Type genericType,
                            Annotation[] annotations,
                            javax.ws.rs.core.MediaType mediaType,
                            javax.ws.rs.core.MultivaluedMap<String,​Object> httpHeaders,
                            OutputStream entityStream)
                     throws IOException,
                            javax.ws.rs.WebApplicationException
        Specified by:
        writeTo in interface javax.ws.rs.ext.MessageBodyWriter<jakarta.json.JsonArray>
        Throws:
        IOException
        javax.ws.rs.WebApplicationException
      • getSize

        public long getSize​(jakarta.json.JsonArray t,
                            Class<?> type,
                            Type genericType,
                            Annotation[] annotations,
                            javax.ws.rs.core.MediaType mediaType)
        Specified by:
        getSize in interface javax.ws.rs.ext.MessageBodyWriter<jakarta.json.JsonArray>