Class ExportPathUtils
java.lang.Object
com.atlassian.confluence.importexport.impl.ExportPathUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
constructRelativePath
(String baseUrl, String resourcePath) Constructs the relative path of the resource, including the application context path.static String
Returns the path without the static resource prefix by stripping everything from '/s/' to '/_'
-
Constructor Details
-
ExportPathUtils
public ExportPathUtils()
-
-
Method Details
-
stripStaticResourcePrefix
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
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 '/')
-