Package thredds.core

Class 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 Detail

      • CatalogManager

        public CatalogManager()
    • Method Detail

      • 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 an 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