Class UriUtil
java.lang.Object
com.sap.cloud.security.xsuaa.util.UriUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic URIexpandPath(URI baseUri, String pathToAppend) Utility method that expands the path of the URI.static URIreplaceSubdomain(URI uri, String subdomain) Utility method that replaces the subdomain of the URI with the given subdomain.
-
Method Details
-
replaceSubdomain
Utility method that replaces the subdomain of the URI with the given subdomain.- Parameters:
uri- the URI to be replaced.subdomain- of the tenant.- Returns:
- the URI with the replaced subdomain or the passed URI in case a replacement was not possible.
-
expandPath
Utility method that expands the path of the URI.- Parameters:
baseUri- the URI to be replaced.pathToAppend- the path to append.- Returns:
- the URI with the path.
-