Class ExportPathUtils


  • public class ExportPathUtils
    extends Object
    • Constructor Detail

      • ExportPathUtils

        public ExportPathUtils()
    • Method Detail

      • stripStaticResourcePrefix

        public static String stripStaticResourcePrefix​(String path)
        Returns the path without the static resource prefix by stripping everything from '/s/' to '/_'
        Parameters:
        path - path to strip the static resource prefix from
        Returns:
        original path minus the static resource prefix
      • constructRelativePath

        public static String constructRelativePath​(String baseUrl,
                                                   String resourcePath)
        Constructs the relative path of the resource, including the application context path. It excludes any query parameters.
        Parameters:
        baseUrl - the baseurl of the application
        resourcePath - the absolute or relative resource path
        Returns:
        the relative export path for the resource (with the leading '/')