Class KevDataFeed
java.lang.Object
io.github.jeremylong.openvulnerability.client.kev.KevDataFeed
- All Implemented Interfaces:
DataFeed<KevCatalog>
Data Feed for the CISA Known Exploited Vulnerabilities Catalog.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate final Stringprivate final HttpClientSupplierprivate final com.fasterxml.jackson.databind.ObjectMapperJackson object mapper. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new KEV data feed with the default location.KevDataFeed(String downloadUrl) Constructs a new KEV data feed with the specified download URL.KevDataFeed(String downloadUrl, HttpClientSupplier httpClientSupplier) Constructs a new KEV data feed with the specified download URL and HTTP client supplier. -
Method Summary
-
Field Details
-
DEFAULT_LOCATION
- See Also:
-
objectMapper
private final com.fasterxml.jackson.databind.ObjectMapper objectMapperJackson object mapper. -
httpClientSupplier
-
downloadUrl
-
-
Constructor Details
-
KevDataFeed
public KevDataFeed()Constructs a new KEV data feed with the default location. -
KevDataFeed
Constructs a new KEV data feed with the specified download URL.- Parameters:
downloadUrl- the URL to download the KEV catalog from
-
KevDataFeed
Constructs a new KEV data feed with the specified download URL and HTTP client supplier.- Parameters:
downloadUrl- the URL to download the KEV catalog fromhttpClientSupplier- the HTTP client supplier
-
-
Method Details
-
download
Description copied from interface:DataFeedDownloads and returns the data feed.- Specified by:
downloadin interfaceDataFeed<KevCatalog>- Returns:
- the downloaded data
-