Package thredds.util

Class TdsPathUtils

java.lang.Object
thredds.util.TdsPathUtils

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

    • TdsPathUtils

      public TdsPathUtils()
  • Method Details

    • extractPath

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

      public static String extractPath(jakarta.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)