
Package ca.uhn.fhir.repository
Class Repositories
java.lang.Object
ca.uhn.fhir.repository.Repositories
Static factory methods for creating instances of 
IRepository.- 
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisRepositoryUrl(String theBaseUrl) static IRepositoryrepositoryForUrl(FhirContext theFhirContext, String theRepositoryUrl) Constructs a version ofIRepositorybased on the given URL. 
- 
Method Details
- 
isRepositoryUrl
 - 
repositoryForUrl
@Nonnull public static IRepository repositoryForUrl(@Nonnull FhirContext theFhirContext, @Nonnull String theRepositoryUrl) Constructs a version ofIRepositorybased 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
IRepositoryLoaderimplementation.- 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.
 
 -