public class DatasetHandler
extends java.lang.Object
| Constructor and Description |
|---|
DatasetHandler() |
| Modifier and Type | Method and Description |
|---|---|
static thredds.catalog.InvDatasetFeatureCollection |
getFeatureCollection(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
static thredds.catalog.InvDatasetFeatureCollection |
getFeatureCollection(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String reqPath) |
static ucar.nc2.NetcdfFile |
getNetcdfFile(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
static ucar.nc2.NetcdfFile |
getNetcdfFile(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String reqPath) |
static java.lang.String |
getNetcdfFilePath(javax.servlet.http.HttpServletRequest req,
java.lang.String reqPath) |
static void |
makeDebugActions() |
static 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.
|
static ucar.nc2.dt.grid.GridDataset |
openGridDataset(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String reqPath,
java.util.Set<ucar.nc2.dataset.NetcdfDataset.Enhance> enhanceMode)
Open a file as a GridDataset, using getNetcdfFile(), so that it gets wrapped in NcML if needed.
|
static void |
registerDatasetSource(DatasetSource v) |
static void |
registerDatasetSource(java.lang.String className) |
static 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.
|
public static void makeDebugActions()
public static void registerDatasetSource(java.lang.String className)
public static void registerDatasetSource(DatasetSource v)
public static ucar.nc2.NetcdfFile getNetcdfFile(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws java.io.IOException
java.io.IOExceptionpublic static ucar.nc2.NetcdfFile getNetcdfFile(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String reqPath)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String getNetcdfFilePath(javax.servlet.http.HttpServletRequest req,
java.lang.String reqPath)
throws java.io.IOException
java.io.IOExceptionpublic static thredds.catalog.InvDatasetFeatureCollection getFeatureCollection(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws java.io.IOException
java.io.IOExceptionpublic static thredds.catalog.InvDatasetFeatureCollection getFeatureCollection(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String reqPath)
throws java.io.IOException
java.io.IOExceptionpublic static ucar.nc2.dt.grid.GridDataset openGridDataset(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String reqPath)
throws java.io.IOException
req - the requestres - the responsereqPath - the request pathjava.io.IOException - on read errorpublic static ucar.nc2.dt.grid.GridDataset openGridDataset(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String reqPath,
java.util.Set<ucar.nc2.dataset.NetcdfDataset.Enhance> enhanceMode)
throws java.io.IOException
req - the requestres - the responsereqPath - the request pathenhanceMode - optional enhance mode or nulljava.io.IOException - on read errorpublic static boolean resourceControlOk(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String reqPath)
throws java.io.IOException
req - the requestres - the responsereqPath - the request path; if null, use req.getPathInfo()java.io.IOException - on read error