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 Summary
Constructors Constructor Description TdsPathUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringextractPath(javax.servlet.http.HttpServletRequest req, String removePrefix)static StringextractPath(javax.servlet.http.HttpServletRequest req, String removePrefix, String[] endings)static StringgetFileNameForResponse(String pathInfo, String extension)static StringgetFileNameForResponse(String pathInfo, ucar.nc2.NetcdfFileWriter.Version version)static StringgetFileNameForResponse(String pathInfo, ucar.nc2.write.NetcdfFileFormat format)static StringgetSuffix(ucar.nc2.write.NetcdfFileFormat format)
-
-
-
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)
-
-