Class LocalDataSource
- java.lang.Object
-
- org.owasp.dependencycheck.data.update.LocalDataSource
-
- All Implemented Interfaces:
CachedWebDataSource
- Direct Known Subclasses:
HostedSuppressionsDataSource
,RetireJSDataSource
public abstract class LocalDataSource extends java.lang.Object implements CachedWebDataSource
- Author:
- Jeremy Long
-
-
Constructor Summary
Constructors Constructor Description LocalDataSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected long
getLastUpdated(java.io.File repo)
Retrieves the last updated date from the local file system (in a file next to the repo file).protected void
saveLastUpdated(java.io.File repo, long timestamp)
Saves the timestamp in a properties file next to the provided repo file-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.owasp.dependencycheck.data.update.CachedWebDataSource
purge, update
-
-
-
-
Method Detail
-
saveLastUpdated
protected void saveLastUpdated(java.io.File repo, long timestamp)
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
protected long getLastUpdated(java.io.File repo)
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
-
-