public interface IPackageRequest
| Modifier and Type | Method and Description |
|---|---|
OssiPackage |
add(java.util.List<PackageCoordinate> path)
Add a new package/version (with dependency information) to search for.
|
OssiPackage |
add(java.lang.String pm,
java.lang.String groupId,
java.lang.String artifactId,
java.lang.String version)
Add a new artifact to search for.
|
void |
addVulnerabilityFilter(IVulnerabilityFilter filter)
Filter the request results using the specified filter(s)
|
java.util.Collection<OssiPackage> |
run()
Execute the request.
|
void |
setCacheFile(java.lang.String path)
Set the file path to be used by the cache.
|
void |
setCacheTimeout(int hours)
Number of hours till the cache expires.
|
void |
setCredentials(java.lang.String user,
java.lang.String token)
Set the credentials to be used in the OSS Index query
|
void |
setMaximumPackagesPerRequest(int count) |
OssiPackage add(java.lang.String pm, java.lang.String groupId, java.lang.String artifactId, java.lang.String version)
pm - Name of the package managergroupId - Group ID for the packageartifactId - Artifact ID for the packageversion - Version number for requestOssiPackage add(java.util.List<PackageCoordinate> path)
path - A path from the root (including) package to the dependency package. The packager being checked
is the last one placed on the list (max index).void addVulnerabilityFilter(IVulnerabilityFilter filter)
java.util.Collection<OssiPackage> run() throws java.io.IOException
java.io.IOExceptionvoid setCacheFile(java.lang.String path)
void setCredentials(java.lang.String user,
java.lang.String token)
void setMaximumPackagesPerRequest(int count)
void setCacheTimeout(int hours)