Class ExportPathUtils

java.lang.Object
com.atlassian.confluence.importexport.impl.ExportPathUtils

public class ExportPathUtils extends Object
  • Constructor Details

    • ExportPathUtils

      public ExportPathUtils()
  • Method Details

    • 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 '/')