public class DatasetScanCatalogBuilder extends Object implements CatalogBuilder
| Constructor and Description |
|---|
DatasetScanCatalogBuilder(InvDatasetScan datasetScan,
CrawlableDataset collectionCrDs,
InvService service) |
| Modifier and Type | Method and Description |
|---|---|
InvCatalogImpl |
generateCatalog(CrawlableDataset catalogCrDs)
Return an InvCatalog for the level in the collection hierarchy specified by catalogPath.
|
org.jdom2.Document |
generateCatalogAsDocument(CrawlableDataset catalogCrDs)
Return a JDOM Document representation of the catalog for the level in
the collection hierarchy specified by catalogPath.
|
String |
generateCatalogAsString(CrawlableDataset catalogCrDs)
Return a String containing the XML representation of the catalog for the
level in the collection hierarchy specified by catalogPath.
|
InvCatalogImpl |
generateProxyDsResolverCatalog(CrawlableDataset catalogCrDs,
ProxyDatasetHandler pdh)
Generate the catalog for a resolver request of the given ProxyDatasetHandler.
|
CrawlableDataset |
requestCrawlableDataset(String path)
Return the CrawlableDataset for the given path, null if this CatalogBuilder
does not allow the requested CrawlableDataset.
|
public DatasetScanCatalogBuilder(InvDatasetScan datasetScan, CrawlableDataset collectionCrDs, InvService service)
public CrawlableDataset requestCrawlableDataset(String path) throws IOException
CatalogBuilderThis method can handle requests for regular datasets and proxy datasets.
requestCrawlableDataset in interface CatalogBuilderpath - the path of the requested CrawlableDatasetIOException - if an I/O error occurs while locating the children datasets.public InvCatalogImpl generateCatalog(CrawlableDataset catalogCrDs) throws IOException
CatalogBuildergenerateCatalog in interface CatalogBuildercatalogCrDs - the location in the collection at which to generate a catalogIOException - if problems accessing the dataset collection.public InvCatalogImpl generateProxyDsResolverCatalog(CrawlableDataset catalogCrDs, ProxyDatasetHandler pdh) throws IOException
CatalogBuildergenerateProxyDsResolverCatalog in interface CatalogBuildercatalogCrDs - the location in the collection at which to generate a catalogpdh - the ProxyDatasetHandler corresponding to the resolver request.IOExceptionpublic org.jdom2.Document generateCatalogAsDocument(CrawlableDataset catalogCrDs) throws IOException
CatalogBuildergenerateCatalogAsDocument in interface CatalogBuildercatalogCrDs - the location in the collection at which to generate a catalogIOException - if problems accessing the dataset collection.public String generateCatalogAsString(CrawlableDataset catalogCrDs) throws IOException
CatalogBuildergenerateCatalogAsString in interface CatalogBuildercatalogCrDs - the location in the collection at which to generate a catalogIOException - if problems accessing the dataset collection.