org.apache.wicket.request
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 Summary
 String renderFullUrl(Url url, Url baseUrl)
          Renders the passed url as full/absolute.
 String renderRelativeUrl(Url url, Url baseUrl)
          Renders the passed url as 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.


Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.