@Override
  public CatalogBuilder makeCatalog(String match, String orgPath, URI catURI) throws IOException {
    logger.debug("FMRC make catalog for " + match + " " + catURI);
    State localState = checkState();

    try {
      if ((match == null) || (match.length() == 0)) {
        return makeCatalogTop(catURI, localState);

      } else if (match.equals(RUNS) && wantDatasets.contains(FeatureCollectionConfig.FmrcDatasetType.Runs))
        return makeCatalogRuns(catURI, localState);

      else if (match.equals(OFFSET) && wantDatasets.contains(FeatureCollectionConfig.FmrcDatasetType.ConstantOffsets))
        return makeCatalogOffsets(catURI, localState);

      else if (match.equals(FORECAST) && wantDatasets.contains(FeatureCollectionConfig.FmrcDatasetType.ConstantForecasts))
        return makeCatalogForecasts(catURI, localState);

      else if (match.startsWith(FILES) && wantDatasets.contains(FeatureCollectionConfig.FmrcDatasetType.Files)) {
        return makeCatalogFiles(catURI, localState, datasetCollection.getFilenames(), true);
      }

    } catch (Exception e) {
      logger.error("Error making catalog for " + configPath, e);
    }

    return null;
  }
@Override
  public CatalogBuilder makeCatalog(String match, String orgPath, URI catURI) throws IOException {
    logger.debug("FMRC make catalog for " + match + " " + catURI);
    State localState = checkState();

    try {
      if ((match == null) || (match.length() == 0)) {
        return makeCatalogTop(catURI, localState);

      } else if (match.equals(RUNS) && wantDatasets.contains(FeatureCollectionConfig.FmrcDatasetType.Runs))
        return makeCatalogRuns(catURI, localState);

      else if (match.equals(OFFSET) && wantDatasets.contains(FeatureCollectionConfig.FmrcDatasetType.ConstantOffsets))
        return makeCatalogOffsets(catURI, localState);

      else if (match.equals(FORECAST) && wantDatasets.contains(FeatureCollectionConfig.FmrcDatasetType.ConstantForecasts))
        return makeCatalogForecasts(catURI, localState);

      else if (match.startsWith(FILES) && wantDatasets.contains(FeatureCollectionConfig.FmrcDatasetType.Files)) {
        return makeCatalogFiles(catURI, localState, datasetCollection.getFilenames(), true);
      }

    } catch (Exception e) {
      logger.error("Error making catalog for " + configPath, e);
    }

    return null;
  }
@ Override public CatalogBuilder makeCatalog ( String match , String orgPath , URI catURI ) throws IOException { logger . debug ( "FMRC make catalog for " + match + " " + catURI ) ; State localState = checkState ( ) ; try { if ( ( match == null ) || ( match . length ( ) == 0 ) ) { return makeCatalogTop ( catURI , localState ) ; } else if ( match . equals ( RUNS ) && wantDatasets . contains ( FeatureCollectionConfig . FmrcDatasetType . Runs ) ) return makeCatalogRuns ( catURI , localState ) ; else if ( match . equals ( OFFSET ) && wantDatasets . contains ( FeatureCollectionConfig . FmrcDatasetType . ConstantOffsets ) ) return makeCatalogOffsets ( catURI , localState ) ; else if ( match . equals ( FORECAST ) && wantDatasets . contains ( FeatureCollectionConfig . FmrcDatasetType . ConstantForecasts ) ) return makeCatalogForecasts ( catURI , localState ) ; else if ( match . startsWith ( FILES ) && wantDatasets . contains ( FeatureCollectionConfig . FmrcDatasetType . Files ) ) { return makeCatalogFiles ( catURI , localState , datasetCollection . getFilenames ( ) , true ) ; } } catch ( Exception e ) { logger . error ( "Error making catalog for " + configPath , e ) ; } return null ; }
called by DataRootHandler.makeDynamicCatalog() when the catref is requested
called by DataRootHandler . makeDynamicCatalog () when the catref is requested