Class DefaultFhirRegistry

java.lang.Object
org.openehealth.ipf.commons.ihe.fhir.DefaultFhirRegistry
All Implemented Interfaces:
FhirRegistry

public class DefaultFhirRegistry extends Object implements FhirRegistry
Default implementation of FhirRegistry
Since:
3.2
Author:
Christian Ohr
  • Method Details

    • getFhirRegistry

      public static FhirRegistry getFhirRegistry(String name)
      Lookup or create a new FHIR registry if none exists with the given (servlet) name
    • removeFhirRegistry

      public static FhirRegistry removeFhirRegistry(String name)
      Removes the FHIR registry with the given (servlet) name
    • register

      public void register(Object resourceProvider)
      Description copied from interface: FhirRegistry
      Registers the FHIR resource provider.
      Specified by:
      register in interface FhirRegistry
      Parameters:
      resourceProvider - resource provider
    • unregister

      public void unregister(Object resourceProvider)
      Description copied from interface: FhirRegistry
      Unregisters the FHIR resource provider.
      Specified by:
      unregister in interface FhirRegistry
      Parameters:
      resourceProvider - resource provider
    • register

      public void register(RestfulServer servlet)
      Description copied from interface: FhirRegistry
      Registers the FHIR servlet, usually during its init phase.
      Specified by:
      register in interface FhirRegistry
      Parameters:
      servlet - FHIR servlet
    • unregister

      public void unregister(RestfulServer servlet)
      Description copied from interface: FhirRegistry
      Unregisters the FHIR servlet, usually during its destroy phase
      Specified by:
      unregister in interface FhirRegistry
      Parameters:
      servlet - FHIR servlet
    • hasServlet

      public boolean hasServlet(String servletName)
      Description copied from interface: FhirRegistry
      Returns true if there is already a registered FHIR servlet with the provided name
      Specified by:
      hasServlet in interface FhirRegistry
      Parameters:
      servletName - name of the servlet
      Returns:
      true if there is already a registered FHIR servlet with this name