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 Request
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 Request rebaseRequest​(Expression<String> baseUri, Bindings bindings, Request request) throws URISyntaxException
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:
- The current request.
- Throws:
URISyntaxException
- If the baseUri expression evaluates to null or the resulting value is not a valid URI.
-
-