Package thredds.core

Class 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 Detail

      • TdsRequestedDataset

        public TdsRequestedDataset​(javax.servlet.http.HttpServletRequest request,
                                   String removePrefix)
                            throws IOException
        Throws:
        IOException
    • Method Detail

      • setDatasetManager

        public static void setDatasetManager​(DatasetManager _datasetManager)
      • getDatasetManager

        public static DatasetManager getDatasetManager()
      • getPointDataset

        public static ucar.nc2.ft.FeatureDatasetPoint getPointDataset​(javax.servlet.http.HttpServletRequest request,
                                                                      javax.servlet.http.HttpServletResponse response,
                                                                      String path)
                                                               throws IOException
        Throws:
        IOException
      • getGridDataset

        public static ucar.nc2.dt.GridDataset getGridDataset​(javax.servlet.http.HttpServletRequest request,
                                                             javax.servlet.http.HttpServletResponse response,
                                                             String path)
                                                      throws IOException
        Throws:
        IOException
      • getCoverageCollection

        public static ucar.nc2.ft2.coverage.CoverageCollection getCoverageCollection​(javax.servlet.http.HttpServletRequest request,
                                                                                     javax.servlet.http.HttpServletResponse response,
                                                                                     String path)
                                                                              throws IOException
        Throws:
        IOException
      • getSimpleGeometryFeatureDataset

        public static ucar.nc2.ft2.simpgeometry.SimpleGeometryFeatureDataset getSimpleGeometryFeatureDataset​(javax.servlet.http.HttpServletRequest request,
                                                                                                             javax.servlet.http.HttpServletResponse response,
                                                                                                             String path)
                                                                                                      throws IOException
        Throws:
        IOException
      • getNetcdfFile

        public static ucar.nc2.NetcdfFile getNetcdfFile​(javax.servlet.http.HttpServletRequest request,
                                                        javax.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​(javax.servlet.http.HttpServletRequest request,
                                                javax.servlet.http.HttpServletResponse response,
                                                String path)
      • openAsPointDataset

        public ucar.nc2.ft.FeatureDatasetPoint openAsPointDataset​(javax.servlet.http.HttpServletRequest request,
                                                                  javax.servlet.http.HttpServletResponse response)
                                                           throws IOException
        Throws:
        IOException
      • openAsCoverageDataset

        public ucar.nc2.ft2.coverage.CoverageCollection openAsCoverageDataset​(javax.servlet.http.HttpServletRequest request,
                                                                              javax.servlet.http.HttpServletResponse response)
                                                                       throws IOException
        Throws:
        IOException
      • openAsSimpleGeometryDataset

        public ucar.nc2.ft2.simpgeometry.SimpleGeometryFeatureDataset openAsSimpleGeometryDataset​(javax.servlet.http.HttpServletRequest request,
                                                                                                  javax.servlet.http.HttpServletResponse response)
                                                                                           throws IOException
        Throws:
        IOException
      • openAsGridDataset

        public ucar.nc2.dt.GridDataset openAsGridDataset​(javax.servlet.http.HttpServletRequest request,
                                                         javax.servlet.http.HttpServletResponse response)
                                                  throws IOException
        Throws:
        IOException
      • openAsNetcdfFile

        public ucar.nc2.NetcdfFile openAsNetcdfFile​(javax.servlet.http.HttpServletRequest request,
                                                    javax.servlet.http.HttpServletResponse response)
                                             throws IOException
        Throws:
        IOException
      • isRemote

        public boolean isRemote()
      • getPath

        public String getPath()