Package thredds.core
Class TdsRequestedDataset
java.lang.Object
thredds.core.TdsRequestedDataset
This is the public interface to TDS objects for all services.
Open the requested dataset as a FeatureDataset/GridDataset/NetcdfFile.
If the request requires an authentication challenge, a challenge will be sent back to the client using
the response object, and this method will return null. (This is the only
circumstance in which this method will return null.)
The client will then repeat the request.
LOOK: should we use Optional ?
-
Constructor Summary
ConstructorsConstructorDescriptionTdsRequestedDataset(jakarta.servlet.http.HttpServletRequest request, String removePrefix) -
Method Summary
Modifier and TypeMethodDescriptionstatic ucar.nc2.ft2.coverage.CoverageCollectiongetCoverageCollection(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String path) static DatasetManagerstatic Filestatic ucar.nc2.dt.GridDatasetgetGridDataset(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String path) static longgetLastModified(String reqPath) static StringgetLocationFromNcml(String reqPath) static StringgetLocationFromRequestPath(String reqPath) static ucar.nc2.NetcdfFilegetNetcdfFile(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String path) getPath()static ucar.nc2.ft.FeatureDatasetPointgetPointDataset(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String path) static ucar.nc2.ft2.simpgeometry.SimpleGeometryFeatureDatasetgetSimpleGeometryFeatureDataset(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String path) booleanisRemote()ucar.nc2.ft2.coverage.CoverageCollectionopenAsCoverageDataset(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) ucar.nc2.dt.GridDatasetopenAsGridDataset(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) ucar.nc2.NetcdfFileopenAsNetcdfFile(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) ucar.nc2.ft.FeatureDatasetPointopenAsPointDataset(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) ucar.nc2.ft2.simpgeometry.SimpleGeometryFeatureDatasetopenAsSimpleGeometryDataset(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) static booleanresourceControlOk(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String path) static voidsetDatasetManager(DatasetManager _datasetManager) static boolean
-
Constructor Details
-
TdsRequestedDataset
public TdsRequestedDataset(jakarta.servlet.http.HttpServletRequest request, String removePrefix) throws IOException - Throws:
IOException
-
-
Method Details
-
setDatasetManager
-
getDatasetManager
-
getPointDataset
public static ucar.nc2.ft.FeatureDatasetPoint getPointDataset(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String path) throws IOException - Throws:
IOException
-
getGridDataset
public static ucar.nc2.dt.GridDataset getGridDataset(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String path) throws IOException - Throws:
IOException
-
getCoverageCollection
public static ucar.nc2.ft2.coverage.CoverageCollection getCoverageCollection(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String path) throws IOException - Throws:
IOException
-
getSimpleGeometryFeatureDataset
public static ucar.nc2.ft2.simpgeometry.SimpleGeometryFeatureDataset getSimpleGeometryFeatureDataset(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String path) throws IOException - Throws:
IOException
-
getNetcdfFile
public static ucar.nc2.NetcdfFile getNetcdfFile(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String path) throws IOException - Throws:
IOException
-
getLastModified
-
getFile
-
getLocationFromRequestPath
-
getLocationFromNcml
-
useNetcdfJavaBuilders
public static boolean useNetcdfJavaBuilders() -
resourceControlOk
public static boolean resourceControlOk(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String path) -
openAsPointDataset
public ucar.nc2.ft.FeatureDatasetPoint openAsPointDataset(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException - Throws:
IOException
-
openAsCoverageDataset
public ucar.nc2.ft2.coverage.CoverageCollection openAsCoverageDataset(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException - Throws:
IOException
-
openAsSimpleGeometryDataset
public ucar.nc2.ft2.simpgeometry.SimpleGeometryFeatureDataset openAsSimpleGeometryDataset(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException - Throws:
IOException
-
openAsGridDataset
public ucar.nc2.dt.GridDataset openAsGridDataset(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException - Throws:
IOException
-
openAsNetcdfFile
public ucar.nc2.NetcdfFile openAsNetcdfFile(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException - Throws:
IOException
-
isRemote
public boolean isRemote() -
getPath
-