Package com.ibm.fhir.provider
Class FHIRProvider
- java.lang.Object
 - 
- com.ibm.fhir.provider.FHIRProvider
 
 
- 
- All Implemented Interfaces:
 javax.ws.rs.ext.MessageBodyReader<Resource>,javax.ws.rs.ext.MessageBodyWriter<Resource>
@Consumes({"application/fhir+json","application/json","application/fhir+xml","application/xml"}) @Produces({"application/fhir+json","application/json","application/fhir+xml","application/xml"}) public class FHIRProvider extends java.lang.Object implements javax.ws.rs.ext.MessageBodyReader<Resource>, javax.ws.rs.ext.MessageBodyWriter<Resource>Maps entity streams to/from fhir-model objects 
- 
- 
Constructor Summary
Constructors Constructor Description FHIRProvider(javax.ws.rs.RuntimeType runtimeType) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSize(Resource t, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)protected booleanisPretty(javax.ws.rs.core.HttpHeaders httpHeaders, javax.ws.rs.core.UriInfo uriInfo)booleanisReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)booleanisWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)ResourcereadFrom(java.lang.Class<Resource> 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)voidwriteTo(Resource 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:
 isReadablein interfacejavax.ws.rs.ext.MessageBodyReader<Resource>
 
- 
readFrom
public Resource readFrom(java.lang.Class<Resource> 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:
 readFromin interfacejavax.ws.rs.ext.MessageBodyReader<Resource>- Throws:
 java.io.IOExceptionjavax.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:
 isWriteablein interfacejavax.ws.rs.ext.MessageBodyWriter<Resource>
 
- 
writeTo
public void writeTo(Resource 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:
 writeToin interfacejavax.ws.rs.ext.MessageBodyWriter<Resource>- Throws:
 java.io.IOExceptionjavax.ws.rs.WebApplicationException
 
- 
isPretty
protected boolean isPretty(javax.ws.rs.core.HttpHeaders httpHeaders, javax.ws.rs.core.UriInfo uriInfo) 
 - 
 
 -