Sun Java System Portal Server 7.1 Technical Reference

Expanding Relative URLs to Absolute URLs

The URLScraperProvider is part of the core Portal Server 7.1 product. In a non-gateway scenario, the URLScraperProvider can be used to expand relative URLs to absolute URLs. For example, if a user is trying to access the site:


<a href="../mypage.html">

The Rewriter translates this to:


<a href="http://www.yahoo.com/mail/mypage.html">

where http://www.yahoo.com/mail/ is the base URL of the page scraped.