Package gov.nasa.pds.validate.crawler
Class CrawlerFactory
java.lang.Object
gov.nasa.pds.validate.crawler.CrawlerFactory
public class CrawlerFactory extends Object
Factory class to instantiate the different Crawler objects.
- Author:
- mcayanan
-
Constructor Summary
Constructors Constructor Description CrawlerFactory()
-
Method Summary
Modifier and Type Method Description static Crawler
newInstance(URL url, boolean getDirectories, List<String> fileFilters)
Creates the appropriate Crawler object based on the given inputs.
-
Constructor Details
-
CrawlerFactory
public CrawlerFactory()
-
-
Method Details
-
newInstance
Creates the appropriate Crawler object based on the given inputs.- Parameters:
url
- The url.getDirectories
- If the crawler should retrieve directory listings.fileFilters
- File filters to use when retrieving file listings.- Returns:
- The appropriate Crawler object.
-