Class UrlImpl
- java.lang.Object
-
- org.apache.sling.sitemap.impl.builder.UrlImpl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.sling.sitemap.builder.Url
Url.ChangeFrequency
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Extension>
TaddExtension(Class<T> extensionInterface)Adds an extension to the url.@NotNull UrlsetChangeFrequency(@NotNull Url.ChangeFrequency changeFrequency)Sets the change frequency of the url.@NotNull UrlsetLastModified(@NotNull Instant pointInTime)Sets the last modified time of the url.@NotNull UrlsetPriority(double priority)Sets the priority of the url.
-
-
-
Method Detail
-
setChangeFrequency
@NotNull public @NotNull Url setChangeFrequency(@NotNull @NotNull Url.ChangeFrequency changeFrequency)
Description copied from interface:UrlSets the change frequency of the url.- Specified by:
setChangeFrequencyin interfaceUrl- Returns:
-
setLastModified
@NotNull public @NotNull Url setLastModified(@NotNull @NotNull Instant pointInTime)
Description copied from interface:UrlSets the last modified time of the url.- Specified by:
setLastModifiedin interfaceUrl- Returns:
-
setPriority
@NotNull public @NotNull Url setPriority(double priority)
Description copied from interface:UrlSets the priority of the url. According to the sitemap protocol the priority must be a number between 0.0 and 1.0. Values smaller or greater will be corrected to the lower and upper bound respectively.- Specified by:
setPriorityin interfaceUrl- Returns:
-
addExtension
@Nullable public <T extends Extension> T addExtension(Class<T> extensionInterface)
Description copied from interface:UrlAdds an extension to the url.- Specified by:
addExtensionin interfaceUrl- Type Parameters:
T- the type of the extension- Parameters:
extensionInterface- the interface of the extension to add- Returns:
- an instance of the given interface, or null when no
SitemapExtensionProvideris registered for the given interface
-
-