Package org.hl7.fhir.utilities.npm
Interface IPackageCacheManager
-
- All Known Implementing Classes:
BasePackageCacheManager,FilesystemPackageCacheManager
public interface IPackageCacheManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NpmPackageaddPackageToCache(String id, String version, InputStream packageTgzInputStream, String sourceDesc)StringgetPackageId(String canonicalUrl)StringgetPackageUrl(String packageId)NpmPackageloadPackage(String idAndVer)NpmPackageloadPackage(String id, String version)
-
-
-
Method Detail
-
getPackageId
String getPackageId(String canonicalUrl) throws IOException
- Throws:
IOException
-
addPackageToCache
NpmPackage addPackageToCache(String id, String version, InputStream packageTgzInputStream, String sourceDesc) throws IOException
- Throws:
IOException
-
getPackageUrl
String getPackageUrl(String packageId) throws IOException
- Throws:
IOException
-
loadPackage
NpmPackage loadPackage(String id, String version) throws FHIRException, IOException
- Throws:
FHIRExceptionIOException
-
loadPackage
NpmPackage loadPackage(String idAndVer) throws FHIRException, IOException
- Parameters:
idAndVer- - use id#ver- Returns:
- Throws:
FHIRExceptionIOException
-
-