public List<URI> getArtifacts(URL packageSourceURL, InputStream inputStream)
throws ContributionException, IOException {
String packageType = this.packageTypeDescriber.getType(packageSourceURL, null);
if (packageType == null) {
error("UnsupportedPackageTypeException", packageTypeDescriber, packageSourceURL.toString());
throw new UnsupportedPackageTypeException("Unsupported contribution package type: " + packageSourceURL.toString());
}
PackageProcessor packageProcessor = this.processors.getPackageProcessor(packageType);
if (packageProcessor == null) {
error("UnsupportedPackageTypeException", packageTypeDescriber, packageType);
throw new UnsupportedPackageTypeException("Unsupported contribution package type: " + packageType);
}
return packageProcessor.getArtifacts(packageSourceURL, inputStream);
}