Class AbstractJaxRsResourceProvider<R extends org.hl7.fhir.instance.model.api.IBaseResource>

java.lang.Object
ca.uhn.fhir.jaxrs.server.AbstractJaxRsProvider
ca.uhn.fhir.jaxrs.server.AbstractJaxRsResourceProvider<R>
All Implemented Interfaces:
ca.uhn.fhir.rest.api.server.IRestfulServer<JaxRsRequest>, ca.uhn.fhir.rest.server.IResourceProvider, ca.uhn.fhir.rest.server.IRestfulServerDefaults

@Produces({"application/json","application/xml","text/plain","application/json+fhir","application/xml+fhir"}) @Consumes({"application/x-www-form-urlencoded","application/json","application/json+fhir","application/xml+fhir","application/fhir+json","application/fhir+xml","application/octet-stream"}) public abstract class AbstractJaxRsResourceProvider<R extends org.hl7.fhir.instance.model.api.IBaseResource> extends AbstractJaxRsProvider implements ca.uhn.fhir.rest.api.server.IRestfulServer<JaxRsRequest>, ca.uhn.fhir.rest.server.IResourceProvider
This server is the abstract superclass for all resource providers. It exposes a large amount of the fhir api functionality using JAXRS
Author:
Peter Van Houte | peter.vanhoute@agfa.com | Agfa Healthcare
  • Constructor Details

    • AbstractJaxRsResourceProvider

      The default constructor. The method bindings are retrieved from the class being constructed.
    • AbstractJaxRsResourceProvider

      protected AbstractJaxRsResourceProvider(ca.uhn.fhir.context.FhirContext ctx)
      Provides the ability to specify the FhirContext.
      Parameters:
      ctx - the FhirContext instance.
    • AbstractJaxRsResourceProvider

      protected AbstractJaxRsResourceProvider(Class<? extends AbstractJaxRsProvider> theProviderClass)
      This constructor takes in an explicit interface class. This subclass should be identical to the class being constructed but is given explicitly in order to avoid issues with proxy classes in a jee environment.
      Parameters:
      theProviderClass - the interface of the class
    • AbstractJaxRsResourceProvider

      protected AbstractJaxRsResourceProvider(ca.uhn.fhir.context.FhirContext ctx, Class<? extends AbstractJaxRsProvider> theProviderClass)
      This constructor takes in an explicit interface class. This subclass should be identical to the class being constructed but is given explicitly in order to avoid issues with proxy classes in a jee environment.
      Parameters:
      ctx - the FhirContext instance.
      theProviderClass - the interface of the class
  • Method Details