this.startUrl = startUrl;
}
public List<URI> crawl(final URICallback callback) {
List<URI> uris = new ArrayList<URI>();
final CrawlerResult result = crawler.getUrls(getConfiguration());
Set<PageURL> pageURLs = result.getUrls();
for (PageURL pageURL : pageURLs) {
uris.add(pageURL.getUri());
callback.submit(pageURL.getUri());
}
return uris;