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
Method Summary |
static Crawler |
newInstance(URL url,
boolean getDirectories,
List<String> fileFilters)
Creates the appropriate Crawler object based on the given inputs. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CrawlerFactory
public CrawlerFactory()
newInstance
public static Crawler newInstance(URL url,
boolean getDirectories,
List<String> fileFilters)
- 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.
Copyright © 2010-2014 Planetary Data System. All Rights Reserved.