gov.nasa.pds.validate.crawler
Class CrawlerFactory

java.lang.Object
  extended by gov.nasa.pds.validate.crawler.CrawlerFactory

public class CrawlerFactory
extends Object

Factory class to instantiate the different Crawler objects.

Author:
mcayanan

Constructor Summary
CrawlerFactory()
           
 
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
 

Constructor Detail

CrawlerFactory

public CrawlerFactory()
Method Detail

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–2015 Planetary Data System. All rights reserved.