Package org.forgerock.openig.util
Class BaseUriUtil
- java.lang.Object
-
- org.forgerock.openig.util.BaseUriUtil
-
public final class BaseUriUtil extends Object
Utility to help with baseUri expressions.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
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.
-
-