Class BaseUriUtil


  • public final class BaseUriUtil
    extends Object
    Utility to help with baseUri expressions.
    • 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.