Class SitemapIndexImpl
- java.lang.Object
-
- org.apache.sling.sitemap.impl.builder.SitemapIndexImpl
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class SitemapIndexImpl extends Object implements Closeable
-
-
Constructor Summary
Constructors Constructor Description SitemapIndexImpl(Writer writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSitemap(@NotNull String location)voidaddSitemap(@NotNull String location, @Nullable Instant lastModified)voidclose()
-
-
-
Constructor Detail
-
SitemapIndexImpl
public SitemapIndexImpl(Writer writer) throws IOException
- Throws:
IOException
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
addSitemap
public void addSitemap(@NotNull @NotNull String location) throws SitemapException- Throws:
SitemapException
-
addSitemap
public void addSitemap(@NotNull @NotNull String location, @Nullable @Nullable Instant lastModified) throws SitemapException- Throws:
SitemapException
-
-