Package org.forgerock.openig.util
Class BaseUriUtil
java.lang.Object
org.forgerock.openig.util.BaseUriUtil
Utility to help with baseUri expressions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Promise<Request,
URISyntaxException> rebaseRequest
(Expression<String> baseUri, Bindings bindings, Request request) Rebase the URI of the request based on the evaluation of the baseUri expression.
-
Method Details
-
rebaseRequest
public static Promise<Request,URISyntaxException> rebaseRequest(Expression<String> baseUri, Bindings bindings, Request request) Rebase the URI of the request based on the evaluation of the baseUri expression.- Parameters:
baseUri
- The expression representing the new baseUri to use for the request.bindings
- The bindings used for the evaluation of the baseUri expression.request
- The request to rebase.- Returns:
- a promise of the current request. The promise may carry an
URISyntaxException
if the baseUri expression evaluates to null or the resulting value is not a valid URI.
-