@ThreadSafe
public class NodeAuditSearch
extends java.lang.Object
| Constructor and Description |
|---|
NodeAuditSearch(Settings settings)
Creates a NodeAuditSearch for the given repository URL.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Advisory> |
submitPackage(javax.json.JsonObject packageJson)
Submits the package.json file to the Node Audit API and returns a list of
zero or more Advisories.
|
public NodeAuditSearch(Settings settings) throws java.net.MalformedURLException
settings - the configured settingsjava.net.MalformedURLException - thrown if the configured URL is
invalidpublic java.util.List<Advisory> submitPackage(javax.json.JsonObject packageJson) throws SearchException, java.io.IOException
packageJson - the package.json file retrieved from the DependencySearchException - if Node Audit API is unable to analyze the
packagejava.io.IOException - if it's unable to connect to Node Audit APICopyright© 2012-21 Jeremy Long. All Rights Reserved.