tds/src/main/java/thredds/featurecollection/InvDatasetFeatureCollection.java
protected CatalogBuilder makeCatalogTop(URI catURI, State localState) throws IOException, URISyntaxException {
    Catalog parentCatalog = parent.getParentCatalog();

    CatalogBuilder topCatalog = new CatalogBuilder();
    topCatalog.setName(makeFullName(parent));
    topCatalog.setVersion(parentCatalog.getVersion());
    topCatalog.setBaseURI(catURI);

    DatasetBuilder top = makeDatasetTop(catURI, localState);
    topCatalog.addDataset(top);
    // topCatalog.addService(StandardServices.latest.getService());  // in case its needed
    topCatalog.addService(virtualService);
    return topCatalog;
  }
protected CatalogBuilder makeCatalogTop(URI catURI, State localState) throws IOException, URISyntaxException {
    Catalog parentCatalog = parent.getParentCatalog();

    CatalogBuilder topCatalog = new CatalogBuilder();
    topCatalog.setName(makeFullName(parent));
    topCatalog.setVersion(parentCatalog.getVersion());
    topCatalog.setBaseURI(catURI);

    DatasetBuilder top = makeDatasetTop(catURI, localState);
    topCatalog.addDataset(top);
    // topCatalog.addService(StandardServices.latest.getService());  // in case its needed
    topCatalog.addService(virtualService);
    return topCatalog;
  }
protected CatalogBuilder makeCatalogTop ( URI catURI , State localState ) throws IOException , URISyntaxException { Catalog parentCatalog = parent . getParentCatalog ( ) ; CatalogBuilder topCatalog = new CatalogBuilder ( ) ; topCatalog . setName ( makeFullName ( parent ) ) ; topCatalog . setVersion ( parentCatalog . getVersion ( ) ) ; topCatalog . setBaseURI ( catURI ) ; DatasetBuilder top = makeDatasetTop ( catURI , localState ) ; topCatalog . addDataset ( top ) ; // topCatalog.addService(StandardServices.latest.getService());  // in case its needed topCatalog . addService ( virtualService ) ; return topCatalog ; }
Make the containing catalog of this feature collection
"http://server:port/thredds/catalog/path/catalog.xml"

@param catURI     base URI of the request
@param localState current state to use
@return the top FMRC catalog
@throws java.io.IOException         on I/O error
@throws java.net.URISyntaxException if path is misformed
Make the containing catalog of this feature collection http : // server : port / thredds / catalog / path / catalog . xml