Class ExportPathUtils
- java.lang.Object
-
- com.atlassian.confluence.importexport.impl.ExportPathUtils
-
public class ExportPathUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description ExportPathUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
constructRelativePath(String baseUrl, String resourcePath)
Constructs the relative path of the resource, including the application context path.static String
stripStaticResourcePrefix(String path)
Returns the path without the static resource prefix by stripping everything from '/s/' to '/_'
-
-
-
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 applicationresourcePath
- the absolute or relative resource path- Returns:
- the relative export path for the resource (with the leading '/')
-
-