Package org.linuxforhealth.fhir.provider
Class FHIRJsonPatchProvider
- java.lang.Object
-
- org.linuxforhealth.fhir.provider.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 java.lang.Object implements javax.ws.rs.ext.MessageBodyReader<jakarta.json.JsonArray>, javax.ws.rs.ext.MessageBodyWriter<jakarta.json.JsonArray>
-
-
Constructor Summary
Constructors Constructor Description FHIRJsonPatchProvider(javax.ws.rs.RuntimeType runtimeType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getSize(jakarta.json.JsonArray t, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
boolean
isReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
boolean
isWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
jakarta.json.JsonArray
readFrom(java.lang.Class<jakarta.json.JsonArray> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> httpHeaders, java.io.InputStream entityStream)
void
writeTo(jakarta.json.JsonArray t, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders, java.io.OutputStream entityStream)
-
-
-
Method Detail
-
isReadable
public boolean isReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isReadable
in interfacejavax.ws.rs.ext.MessageBodyReader<jakarta.json.JsonArray>
-
readFrom
public jakarta.json.JsonArray readFrom(java.lang.Class<jakarta.json.JsonArray> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> httpHeaders, java.io.InputStream entityStream) throws java.io.IOException, javax.ws.rs.WebApplicationException
- Specified by:
readFrom
in interfacejavax.ws.rs.ext.MessageBodyReader<jakarta.json.JsonArray>
- Throws:
java.io.IOException
javax.ws.rs.WebApplicationException
-
isWriteable
public boolean isWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteable
in interfacejavax.ws.rs.ext.MessageBodyWriter<jakarta.json.JsonArray>
-
writeTo
public void writeTo(jakarta.json.JsonArray t, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders, java.io.OutputStream entityStream) throws java.io.IOException, javax.ws.rs.WebApplicationException
- Specified by:
writeTo
in interfacejavax.ws.rs.ext.MessageBodyWriter<jakarta.json.JsonArray>
- Throws:
java.io.IOException
javax.ws.rs.WebApplicationException
-
getSize
public long getSize(jakarta.json.JsonArray t, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
getSize
in interfacejavax.ws.rs.ext.MessageBodyWriter<jakarta.json.JsonArray>
-
-