Coverage Report - org.owasp.dependencycheck.data.update.CachedWebDataSource
 
Classes in this File Line Coverage Branch Coverage Complexity
CachedWebDataSource
N/A
N/A
1
 
 1  
 /*
 2  
  * This file is part of dependency-check-core.
 3  
  *
 4  
  * Dependency-check-core is free software: you can redistribute it and/or modify it
 5  
  * under the terms of the GNU General Public License as published by the Free
 6  
  * Software Foundation, either version 3 of the License, or (at your option) any
 7  
  * later version.
 8  
  *
 9  
  * Dependency-check-core is distributed in the hope that it will be useful, but
 10  
  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 11  
  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 12  
  * details.
 13  
  *
 14  
  * You should have received a copy of the GNU General Public License along with
 15  
  * dependency-check-core. If not, see http://www.gnu.org/licenses/.
 16  
  *
 17  
  * Copyright (c) 2012 Jeremy Long. All Rights Reserved.
 18  
  */
 19  
 package org.owasp.dependencycheck.data.update;
 20  
 
 21  
 import org.owasp.dependencycheck.data.update.exception.UpdateException;
 22  
 
 23  
 /**
 24  
  * Defines a data source who's data is retrieved from the Internet. This data
 25  
  * can be downloaded and the local cache updated.
 26  
  *
 27  
  * @author Jeremy Long <jeremy.long@owasp.org>
 28  
  */
 29  
 public interface CachedWebDataSource {
 30  
 
 31  
     /**
 32  
      * Determines if an update to the current data store is needed, if it is the
 33  
      * new data is downloaded from the Internet and imported into the current
 34  
      * cached data store.
 35  
      *
 36  
      * @throws UpdateException is thrown if there is an exception downloading
 37  
      * the data or updating the data store.
 38  
      */
 39  
     void update() throws UpdateException;
 40  
 }