Class AbstractExtension
- java.lang.Object
-
- org.apache.sling.sitemap.spi.builder.AbstractExtension
-
- All Implemented Interfaces:
Extension
@ConsumerType public abstract class AbstractExtension extends java.lang.Object implements Extension
The producer API of anExtension
.
-
-
Constructor Summary
Constructors Constructor Description AbstractExtension()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract void
writeTo(@NotNull javax.xml.stream.XMLStreamWriter writer)
Implementations must write their content to the givenXMLStreamWriter
.
-
-
-
Method Detail
-
writeTo
public abstract void writeTo(@NotNull @NotNull javax.xml.stream.XMLStreamWriter writer) throws javax.xml.stream.XMLStreamException
Implementations must write their content to the givenXMLStreamWriter
.The extension must not open/close its own surrounding tag. This is done by the caller in order to guarantee proper isolation between the core implementation and the extensions. Furthermore, when an extension fails and throws an
XMLStreamException
the extensions output will be discarded but the sitemap generation will not fail.- Parameters:
writer
-- Throws:
javax.xml.stream.XMLStreamException
-
-