Package thredds.core

Class CatalogManager

java.lang.Object
thredds.core.CatalogManager

@Component("CatalogManager") public class CatalogManager extends Object
Provides an API to find a catalog from its path. Handles static and dynamic catalogs.
Since:
6/7/2015
  • Constructor Details

    • CatalogManager

      public CatalogManager()
  • Method Details

    • getCatalog

      public thredds.client.catalog.Catalog getCatalog(String path, URI baseURI) throws IOException
      If a catalog exists and is allowed (not filtered out) for the given path, return the catalog as a Catalog. Otherwise, return null.

      The validity of the returned catalog is not guaranteed. Use Catalog.check() to check that the catalog is valid.

      Parameters:
      path - the path for the requested catalog.
      baseURI - the base URI for the catalog, used to resolve relative URLs.
      Returns:
      the requested Catalog, or null if catalog does not exist or is not allowed.
      Throws:
      IOException