Interface IUrlRenderer


  • public interface IUrlRenderer
    An interface that a Url can implement if it knows how to render itself as full url or relative to a base url
    • Method Detail

      • renderFullUrl

        String renderFullUrl​(Url url,
                             Url baseUrl)
        Renders the passed url as full/absolute.
        Parameters:
        url - the url to render as full
        baseUrl - the url of the currently rendered page
        Returns:
        The full url.
      • renderRelativeUrl

        String renderRelativeUrl​(Url url,
                                 Url baseUrl)
        Renders the passed url as relative to a base url.
        Parameters:
        url - the url to render as relative
        baseUrl - the url of the currently rendered page
        Returns:
        The relative url.