Package org.hl7.fhir.utilities.npm
Interface IPackageCacheManager
- All Known Implementing Classes:
BasePackageCacheManager,FilesystemPackageCacheManager
public interface IPackageCacheManager
-
Method Summary
Modifier and TypeMethodDescriptionaddPackageToCache(String id, String version, InputStream packageTgzInputStream, String sourceDesc) getPackageId(String canonicalUrl) getPackageUrl(String packageId) loadPackage(String idAndVer) Load the package specified by the id and version specified in the idAndVer parameter.loadPackage(String id, String version) Load the package specified by the id and version specified by the parameters.
-
Method Details
-
getPackageId
- Throws:
IOException
-
addPackageToCache
NpmPackage addPackageToCache(String id, String version, InputStream packageTgzInputStream, String sourceDesc) throws IOException - Throws:
IOException
-
getPackageUrl
- Throws:
IOException
-
loadPackage
Load the package specified by the id and version specified by the parameters. Depending on the implementation logic, this may be from the package cache, or resolved from another service.- Parameters:
id- The package idversion- The package version. If this is null, the implementation logic will attempt to resolve an appropriate version based on the package id.- Returns:
- the NPM Package
- Throws:
FHIRExceptionIOException
-
loadPackage
Load the package specified by the id and version specified in the idAndVer parameter. Depending on the implementation logic, this may be from the package cache, or resolved from another service.- Parameters:
idAndVer- - use id#ver- Returns:
- the NPM Package or
- Throws:
FHIRExceptionIOException
-