@Component public class DataRootManager extends Object implements org.springframework.beans.factory.InitializingBean
The "data roots" are read in from one or more trees of config catalogs and are defined by the datasetScan and datasetRoot and featureCollection elements in the config catalogs.
| Modifier and Type | Class and Description |
|---|---|
static class |
DataRootManager.DataRootMatch |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
debug |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
DataRootManager.DataRootMatch |
findDataRootMatch(String spath) |
thredds.server.catalog.FeatureCollectionRef |
findFeatureCollection(String collectionName) |
List<thredds.server.catalog.FeatureCollectionRef> |
getFeatureCollections() |
static DataRootManager |
getInstance() |
String |
getLocationFromRequestPath(String reqPath)
Return the the location to which the given path maps.
|
void |
makeDebugActions() |
void |
setDataRootLocationAliasExpanders(Map<String,String> aliases) |
void |
setDataRootPathMatcher(thredds.server.catalog.DataRootPathMatcher dataRootPathMatcher) |
void |
showRoots(Formatter f) |
public static final boolean debug
public static DataRootManager getInstance()
public void setDataRootLocationAliasExpanders(Map<String,String> aliases)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void setDataRootPathMatcher(thredds.server.catalog.DataRootPathMatcher dataRootPathMatcher)
public DataRootManager.DataRootMatch findDataRootMatch(String spath)
public String getLocationFromRequestPath(String reqPath)
reqPath - the request path.IllegalStateException - if the request is not for a descendant of (or the same as) the matching DatasetRoot collection location.public void showRoots(Formatter f)
public List<thredds.server.catalog.FeatureCollectionRef> getFeatureCollections()
public thredds.server.catalog.FeatureCollectionRef findFeatureCollection(String collectionName)
public void makeDebugActions()