Package thredds.core

Class TdsRequestedDataset

java.lang.Object
thredds.core.TdsRequestedDataset

public class TdsRequestedDataset extends Object
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 Details

    • TdsRequestedDataset

      public TdsRequestedDataset(jakarta.servlet.http.HttpServletRequest request, String removePrefix) throws IOException
      Throws:
      IOException
  • Method Details

    • setDatasetManager

      public static void setDatasetManager(DatasetManager _datasetManager)
    • getDatasetManager

      public static DatasetManager 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

      public static long getLastModified(String reqPath)
    • getFile

      public static File getFile(String reqPath)
    • getLocationFromRequestPath

      public static String getLocationFromRequestPath(String reqPath)
    • getLocationFromNcml

      public static String getLocationFromNcml(String reqPath)
    • 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

      public String getPath()