Class NvdApiDataSource.FeedUrl
java.lang.Object
org.owasp.dependencycheck.data.update.NvdApiDataSource.FeedUrl
- Enclosing class:
NvdApiDataSource
- Author:
- Jeremy Long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static NvdApiDataSource.FeedUrlwithPattern(Function<Optional<String>, String> patternTransformer)
-
Constructor Details
-
FeedUrl
-
-
Method Details
-
withPattern
-
extractFromUrlOptionalPattern
- Parameters:
url- A NVD data feed URL which may be just a base URL such as https://my-nvd-cache/nvd_cache or may include a formatted URL ending with .json.gz such as https://nvd.nist.gov/feeds/json/cve/2.0/nvdcve-2.0-{0}.json.gz- Returns:
- A constructed FeedUrl object
-