public interface IPackageRequest
| Modifier and Type | Method and Description |
|---|---|
OssiPackage |
add(List<PackageCoordinate> path)
Add a new package/version (with dependency information) to search for.
|
OssiPackage |
add(String pm,
String groupId,
String artifactId,
String version)
Add a new artifact to search for.
|
void |
addVulnerabilityFilter(IVulnerabilityFilter filter)
Filter the request results using the specified filter(s)
|
Collection<OssiPackage> |
run()
Execute the request.
|
void |
setCacheFile(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(String user,
String token)
Set the credentials to be used in the OSS Index query
|
void |
setMaximumPackagesPerRequest(int count) |
OssiPackage add(String pm, String groupId, String artifactId, String version)
pm - Name of the package managergroupId - Group ID for the packageartifactId - Artifact ID for the packageversion - Version number for requestOssiPackage add(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)
Collection<OssiPackage> run() throws IOException
IOExceptionvoid setCacheFile(String path)
void setCredentials(String user, String token)
void setMaximumPackagesPerRequest(int count)
void setCacheTimeout(int hours)
Copyright © 2018. All rights reserved.