Class Repositories

java.lang.Object
ca.uhn.fhir.repository.Repositories

public class Repositories extends Object
Static factory methods for creating instances of IRepository.
  • Method Details

    • isRepositoryUrl

      public static boolean isRepositoryUrl(String theBaseUrl)
    • repositoryForUrl

      @Nonnull public static IRepository repositoryForUrl(@Nonnull FhirContext theFhirContext, @Nonnull String theRepositoryUrl)
      Constructs a version of IRepository based on the given URL. These URLs are expected to be in the form of fhir-repository:subscheme:details. Currently supported subschemes include:
      • memory - e.g. fhir-repository:memory:my-repo - the last piece (my-repo) identifies the repository

      The subscheme is used to find a matching IRepositoryLoader implementation.

      Parameters:
      theFhirContext - the FHIR context to use for the repository.
      theRepositoryUrl - a url of the form fhir-repository:subscheme:details
      Returns:
      a repository instance
      Throws:
      IllegalArgumentException - if the URL is not a valid repository URL, or no loader can be found for the URL.