Package org.apache.sling.sitemap.builder
Interface Sitemap
A builder-like object that allows to add locations. For each added location an
Url object is returned which
again allows to add more details to the added location.
Implementations may build an in-memory data structure when addUrl(String) is called, or write each
location on an underlying stream immediately.
-
Method Summary
-
Method Details
-
addUrl
Adds a location to theSitemap. The returnedUrlcan be used to add more details to the so created object.- Parameters:
location- the required location of the entry to add.- Returns:
- an
Urlobject giving access to the location's details - Throws:
SitemapException- if any internal operation of the Sitemap fails
-