Class AbstractExtension
java.lang.Object
org.apache.sling.sitemap.spi.builder.AbstractExtension
- All Implemented Interfaces:
Extension
The producer API of an
Extension.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidwriteTo(@NotNull XMLStreamWriter writer) Implementations must write their content to the givenXMLStreamWriter.
-
Constructor Details
-
AbstractExtension
public AbstractExtension()
-
-
Method Details
-
writeTo
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
XMLStreamExceptionthe extensions output will be discarded but the sitemap generation will not fail.- Parameters:
writer-- Throws:
XMLStreamException
-