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 Summary
Modifier and TypeMethodDescriptionrenderFullUrl(Url url, Url baseUrl) Renders the passed url as full/absolute.renderRelativeUrl(Url url, Url baseUrl) Renders the passed url as relative to a base url.
-
Method Details
-
renderFullUrl
Renders the passed url as full/absolute.- Parameters:
url- the url to render as fullbaseUrl- the url of the currently rendered page- Returns:
- The full url.
-
renderRelativeUrl
Renders the passed url as relative to a base url.- Parameters:
url- the url to render as relativebaseUrl- the url of the currently rendered page- Returns:
- The relative url.
-