public class DatasetHandler extends Object
| Constructor and Description |
|---|
DatasetHandler() |
| Modifier and Type | Method and Description |
|---|---|
static String |
findResourceControl(String path)
Find the longest match for this path.
|
static FeatureCollection |
getFeatureCollection(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
static FeatureCollection |
getFeatureCollection(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String reqPath) |
static NetcdfFile |
getNetcdfFile(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
static NetcdfFile |
getNetcdfFile(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String reqPath) |
static String |
getNetcdfFilePath(javax.servlet.http.HttpServletRequest req,
String reqPath) |
static void |
makeDebugActions() |
static GridDataset |
openGridDataset(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String reqPath)
Open a file as a GridDataset, using getNetcdfFile(), so that it gets wrapped in NcML if needed.
|
static GridDataset |
openGridDataset(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String reqPath,
Set<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(String className) |
static boolean |
resourceControlOk(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
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(String className)
public static void registerDatasetSource(DatasetSource v)
public static NetcdfFile getNetcdfFile(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws IOException
IOExceptionpublic static NetcdfFile getNetcdfFile(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String reqPath) throws IOException
IOExceptionpublic static String getNetcdfFilePath(javax.servlet.http.HttpServletRequest req, String reqPath) throws IOException
IOExceptionpublic static FeatureCollection getFeatureCollection(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws IOException
IOExceptionpublic static FeatureCollection getFeatureCollection(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String reqPath) throws IOException
IOExceptionpublic static GridDataset openGridDataset(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String reqPath) throws IOException
req - the requestres - the responsereqPath - the request pathIOException - on read errorpublic static GridDataset openGridDataset(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String reqPath, Set<NetcdfDataset.Enhance> enhanceMode) throws IOException
req - the requestres - the responsereqPath - the request pathenhanceMode - optional enhance mode or nullIOException - on read errorpublic static String findResourceControl(String path)
path - the complete path name of the datasetpublic static boolean resourceControlOk(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String reqPath)
throws IOException
req - the requestres - the responsereqPath - the request path; if null, use req.getPathInfo()IOException - on read errorCopyright © 1999-2015 UCAR/Unidata. All Rights Reserved.