Package com.ibm.fhir.provider
Class FHIRJsonPatchProvider
- java.lang.Object
 - 
- com.ibm.fhir.provider.FHIRJsonPatchProvider
 
 
- 
- All Implemented Interfaces:
 javax.ws.rs.ext.MessageBodyReader<javax.json.JsonArray>,javax.ws.rs.ext.MessageBodyWriter<javax.json.JsonArray>
@Consumes("application/json-patch+json") @Produces("application/json-patch+json") public class FHIRJsonPatchProvider extends Object implements javax.ws.rs.ext.MessageBodyReader<javax.json.JsonArray>, javax.ws.rs.ext.MessageBodyWriter<javax.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 longgetSize(javax.json.JsonArray t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)booleanisReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)javax.json.JsonArrayreadFrom(Class<javax.json.JsonArray> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream)voidwriteTo(javax.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) 
 - 
 
- 
- 
Method Detail
- 
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
 isReadablein interfacejavax.ws.rs.ext.MessageBodyReader<javax.json.JsonArray>
 
- 
readFrom
public javax.json.JsonArray readFrom(Class<javax.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:
 readFromin interfacejavax.ws.rs.ext.MessageBodyReader<javax.json.JsonArray>- Throws:
 IOExceptionjavax.ws.rs.WebApplicationException
 
- 
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
 isWriteablein interfacejavax.ws.rs.ext.MessageBodyWriter<javax.json.JsonArray>
 
- 
writeTo
public void writeTo(javax.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:
 writeToin interfacejavax.ws.rs.ext.MessageBodyWriter<javax.json.JsonArray>- Throws:
 IOExceptionjavax.ws.rs.WebApplicationException
 
- 
getSize
public long getSize(javax.json.JsonArray t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)- Specified by:
 getSizein interfacejavax.ws.rs.ext.MessageBodyWriter<javax.json.JsonArray>
 
 - 
 
 -