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 void
addSitemap(@NotNull String location)
void
addSitemap(@NotNull String location, @Nullable Instant lastModified)
void
close()
-
-
-
Constructor Detail
-
SitemapIndexImpl
public SitemapIndexImpl(Writer writer) throws IOException
- Throws:
IOException
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-