Package thredds.core
Class CatalogManager
- java.lang.Object
-
- thredds.core.CatalogManager
-
@Component("CatalogManager") public class CatalogManager extends ObjectProvides an API to find a catalog from its path. Handles static and dynamic catalogs.- Since:
- 6/7/2015
-
-
Constructor Summary
Constructors Constructor Description CatalogManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description thredds.client.catalog.CataloggetCatalog(String path, URI baseURI)If a catalog exists and is allowed (not filtered out) for the given path, return the catalog as an Catalog.
-
-
-
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
-
-