Class AlternateLanguageExtensionProvider.ExtensionImpl
- java.lang.Object
-
- org.apache.sling.sitemap.spi.builder.AbstractExtension
-
- org.apache.sling.sitemap.impl.builder.extensions.AlternateLanguageExtensionProvider.ExtensionImpl
-
- All Implemented Interfaces:
Extension,AlternateLanguageExtension
- Enclosing class:
- AlternateLanguageExtensionProvider
public static class AlternateLanguageExtensionProvider.ExtensionImpl extends AbstractExtension implements AlternateLanguageExtension
-
-
Constructor Summary
Constructors Constructor Description ExtensionImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull AlternateLanguageExtensionsetDefaultLocale()@NotNull AlternateLanguageExtensionsetHref(@NotNull String location)@NotNull AlternateLanguageExtensionsetLocale(@NotNull Locale locale)voidwriteTo(@NotNull XMLStreamWriter writer)Implementations must write their content to the givenXMLStreamWriter.
-
-
-
Method Detail
-
setLocale
@NotNull public @NotNull AlternateLanguageExtension setLocale(@NotNull @NotNull Locale locale)
- Specified by:
setLocalein interfaceAlternateLanguageExtension
-
setDefaultLocale
@NotNull public @NotNull AlternateLanguageExtension setDefaultLocale()
- Specified by:
setDefaultLocalein interfaceAlternateLanguageExtension
-
setHref
@NotNull public @NotNull AlternateLanguageExtension setHref(@NotNull @NotNull String location)
- Specified by:
setHrefin interfaceAlternateLanguageExtension
-
writeTo
public void writeTo(@NotNull @NotNull XMLStreamWriter writer) throws XMLStreamExceptionDescription copied from class:AbstractExtensionImplementations 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.- Specified by:
writeToin classAbstractExtension- Throws:
XMLStreamException
-
-