Class HtmlFhirAdapter

java.lang.Object
dev.dsf.fhir.adapter.AbstractAdapter
dev.dsf.fhir.adapter.HtmlFhirAdapter
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<org.hl7.fhir.r4.model.Resource>

@Provider @Produces("text/html") public class HtmlFhirAdapter extends AbstractAdapter implements jakarta.ws.rs.ext.MessageBodyWriter<org.hl7.fhir.r4.model.Resource>
  • Constructor Details

  • Method Details

    • getFhirContext

      protected ca.uhn.fhir.context.FhirContext getFhirContext()
    • getParser

      protected ca.uhn.fhir.parser.IParser getParser(jakarta.ws.rs.core.MediaType mediaType, Supplier<ca.uhn.fhir.parser.IParser> parser)
      Overrides:
      getParser in class AbstractAdapter
    • isWriteable

      public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      isWriteable in interface jakarta.ws.rs.ext.MessageBodyWriter<org.hl7.fhir.r4.model.Resource>
    • writeTo

      public void writeTo(org.hl7.fhir.r4.model.Resource resource, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException
      Specified by:
      writeTo in interface jakarta.ws.rs.ext.MessageBodyWriter<org.hl7.fhir.r4.model.Resource>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException