Package org.hl7.fhir.utilities.cache
Class PackageClient
- java.lang.Object
-
- org.hl7.fhir.utilities.cache.PackageClient
-
- Direct Known Subclasses:
CachingPackageClient
public class PackageClient extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classPackageClient.PackageInfo
-
Constructor Summary
Constructors Constructor Description PackageClient(String address)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists(String id, String ver)InputStreamfetch(String id, String ver)InputStreamfetch(PackageClient.PackageInfo info)InputStreamfetchCached(String url)InputStreamfetchNpm(String id, String ver)protected Stringfn(String url)StringgetLatestVersion(String id)DategetNewPackages(Date lastCalled, List<PackageClient.PackageInfo> updates)List<PackageClient.PackageInfo>getVersions(String id)List<PackageClient.PackageInfo>search(String name, String canonical, String fhirVersion, boolean preRelease)Stringurl(String id, String v)
-
-
-
Constructor Detail
-
PackageClient
public PackageClient(String address)
-
-
Method Detail
-
exists
public boolean exists(String id, String ver) throws IOException
- Throws:
IOException
-
fetch
public InputStream fetch(String id, String ver) throws IOException
- Throws:
IOException
-
fetch
public InputStream fetch(PackageClient.PackageInfo info) throws IOException
- Throws:
IOException
-
fetchNpm
public InputStream fetchNpm(String id, String ver) throws IOException
- Throws:
IOException
-
fetchCached
public InputStream fetchCached(String url) throws IOException, FileNotFoundException
- Throws:
IOExceptionFileNotFoundException
-
getVersions
public List<PackageClient.PackageInfo> getVersions(String id) throws IOException
- Throws:
IOException
-
search
public List<PackageClient.PackageInfo> search(String name, String canonical, String fhirVersion, boolean preRelease) throws IOException
- Throws:
IOException
-
getNewPackages
public Date getNewPackages(Date lastCalled, List<PackageClient.PackageInfo> updates)
-
getLatestVersion
public String getLatestVersion(String id) throws IOException
- Throws:
IOException
-
-