@Component
public class DatasetManager
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean
Need to rethink return type - using null to mean many things
| Constructor and Description |
|---|
DatasetManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
java.lang.String |
getLocationFromRequestPath(java.lang.String reqPath) |
ucar.nc2.ft2.coverage.CoverageCollection |
openCoverageDataset(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String reqPath) |
InvDatasetFeatureCollection |
openFeatureCollection(thredds.server.catalog.FeatureCollectionRef ftCollection) |
ucar.nc2.dt.grid.GridDataset |
openGridDataset(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String reqPath)
Open a file as a GridDataset, using getNetcdfFile(), so that it gets wrapped in NcML if needed.
|
ucar.nc2.NetcdfFile |
openNetcdfFile(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String reqPath) |
ucar.nc2.ft.FeatureDatasetPoint |
openPointDataset(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String reqPath) |
void |
registerDatasetSource(DatasetSource v) |
void |
registerDatasetSource(java.lang.String className) |
boolean |
resourceControlOk(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String reqPath)
Check if this is making a request for a restricted dataset, and if so, if its allowed.
|
void |
setDatasetTracker(thredds.server.catalog.tracker.DatasetTracker datasetTracker) |
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic void setDatasetTracker(thredds.server.catalog.tracker.DatasetTracker datasetTracker)
public java.lang.String getLocationFromRequestPath(java.lang.String reqPath)
public ucar.nc2.NetcdfFile openNetcdfFile(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String reqPath)
throws java.io.IOException
java.io.IOExceptionpublic ucar.nc2.dt.grid.GridDataset openGridDataset(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String reqPath)
throws java.io.IOException
java.io.IOExceptionpublic ucar.nc2.ft.FeatureDatasetPoint openPointDataset(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String reqPath)
throws java.io.IOException
java.io.IOExceptionpublic ucar.nc2.ft2.coverage.CoverageCollection openCoverageDataset(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String reqPath)
throws java.io.IOException
java.io.IOExceptionpublic boolean resourceControlOk(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String reqPath)
req - the requestres - the responsereqPath - the request path; if null, use req.getPathInfo()public void registerDatasetSource(java.lang.String className)
public void registerDatasetSource(DatasetSource v)
public InvDatasetFeatureCollection openFeatureCollection(thredds.server.catalog.FeatureCollectionRef ftCollection) throws java.io.IOException
java.io.IOException