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 Object implements javax.ws.rs.ext.MessageBodyReader<Resource>, javax.ws.rs.ext.MessageBodyWriter<Resource> 
- 
- 
Constructor Summary
Constructors Constructor Description FHIRProvider(javax.ws.rs.RuntimeType runtimeType) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSize(Resource t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)protected static booleanisPretty(javax.ws.rs.core.HttpHeaders httpHeaders, javax.ws.rs.core.UriInfo uriInfo)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)ResourcereadFrom(Class<Resource> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream)voidwriteTo(Resource 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<Resource>
 
- 
readFrom
public Resource readFrom(Class<Resource> 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<Resource>- 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<Resource>
 
- 
writeTo
public void writeTo(Resource 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<Resource>- Throws:
 IOExceptionjavax.ws.rs.WebApplicationException
 
- 
isPretty
protected static boolean isPretty(javax.ws.rs.core.HttpHeaders httpHeaders, javax.ws.rs.core.UriInfo uriInfo) 
- 
getSize
public long getSize(Resource t, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
 getSizein interfacejavax.ws.rs.ext.MessageBodyWriter<Resource>
 
 - 
 
 -