Package thredds.util

Class TdsPathUtils


  • public class TdsPathUtils
    extends Object
    Utilities for extracting path information from request. Handles servlet and spring controller cases
    • Constructor Detail

      • TdsPathUtils

        public TdsPathUtils()
    • Method Detail

      • extractPath

        public static String extractPath​(javax.servlet.http.HttpServletRequest req,
                                         String removePrefix)
      • extractPath

        public static String extractPath​(javax.servlet.http.HttpServletRequest req,
                                         String removePrefix,
                                         String[] endings)
      • getFileNameForResponse

        public static String getFileNameForResponse​(String pathInfo,
                                                    ucar.nc2.NetcdfFileWriter.Version version)
      • getSuffix

        public static String getSuffix​(ucar.nc2.write.NetcdfFileFormat format)
      • getFileNameForResponse

        public static String getFileNameForResponse​(String pathInfo,
                                                    ucar.nc2.write.NetcdfFileFormat format)
      • getFileNameForResponse

        public static String getFileNameForResponse​(String pathInfo,
                                                    String extension)