public void addSeed(URI uri) {
		// Update the scope of the spidering process
		String host = null;

		try {
			host = uri.getHost();
			defaultFetchFilter.addScopeRegex(host);
		} catch (URIException e) {
			log.error("There was an error while adding seed value: " + uri, e);
			return;
		}
		// Add the seed to the list -- it will be added to the task list only when the spider is
		// started
		this.seedList.add(uri);
		// Add the appropriate 'robots.txt' as a seed
		if (getSpiderParam().isParseRobotsTxt()) {
			addRootFileSeed(uri, "robots.txt");
		}
		// Add the appropriate 'sitemap.xml' as a seed
		if (getSpiderParam().isParseSitemapXml()) {
			addRootFileSeed(uri, "sitemap.xml");
		}
		// And add '.svn/entries' as a seed, for SVN based spidering
		if (getSpiderParam().isParseSVNEntries()) {
			addFileSeed(uri, ".svn/entries", svnUrlPattern);
			addFileSeed(uri, ".svn/wc.db", svnUrlPattern);
		}

		// And add '.git/index' as a seed, for Git based spidering
		if (getSpiderParam().isParseGit()) {
			addFileSeed(uri, ".git/index", gitUrlPattern);
		}

	}
public void addSeed ( URI uri ) { String host = null ; try { host = uri . getHost ( ) ; defaultFetchFilter . addScopeRegex ( host ) ; } catch ( URIException e ) { log . error ( "There was an error while adding seed value: " + uri , e ) ; return ; } this . seedList . add ( uri ) ; if ( getSpiderParam ( ) . isParseRobotsTxt ( ) ) { addRootFileSeed ( uri , "robots.txt" ) ; } if ( getSpiderParam ( ) . isParseSitemapXml ( ) ) { addRootFileSeed ( uri , "sitemap.xml" ) ; } if ( getSpiderParam ( ) . isParseSVNEntries ( ) ) { addFileSeed ( uri , ".svn/entries" , svnUrlPattern ) ; addFileSeed ( uri , ".svn/wc.db" , svnUrlPattern ) ; } if ( getSpiderParam ( ) . isParseGit ( ) ) { addFileSeed ( uri , ".git/index" , gitUrlPattern ) ; } }
Adds a new seed for the Spider.

@param uri the uri