@ProviderType public interface SitemapA builder-like object that allows to add locations. For each added location an
Urlobject 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.
@NotNull @NotNull Url addUrl(@NotNull @NotNull java.lang.String location) throws SitemapExceptionAdds a location to the
Sitemap. The returned
Urlcan be used to add more details to the so created object.