Class LocalDataSource
java.lang.Object
org.owasp.dependencycheck.data.update.LocalDataSource
- All Implemented Interfaces:
CachedWebDataSource
- Direct Known Subclasses:
HostedSuppressionsDataSource, RetireJSDataSource
- Author:
- Jeremy Long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected longgetLastUpdated(File repo) Retrieves the last updated date from the local file system (in a file next to the repo file).protected voidsaveLastUpdated(File repo, long timestamp) Saves the timestamp in a properties file next to the provided repo fileMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CachedWebDataSource
purge, update
-
Constructor Details
-
LocalDataSource
public LocalDataSource()
-
-
Method Details
-
saveLastUpdated
Saves the timestamp in a properties file next to the provided repo file- Parameters:
repo- the local file data sourcetimestamp- the epoch timestamp to store
-
getLastUpdated
Retrieves the last updated date from the local file system (in a file next to the repo file).- Parameters:
repo- the local file data source- Returns:
- the epoch timestamp of the last updated date/time
-