Package io.wcm.handler.url.suffix
Class FilteringSuffixStateStrategy
- java.lang.Object
-
- io.wcm.handler.url.suffix.FilteringSuffixStateStrategy
-
- All Implemented Interfaces:
SuffixStateKeepingStrategy
@ProviderType public final class FilteringSuffixStateStrategy extends java.lang.Object implements SuffixStateKeepingStrategy
Implementation ofSuffixStateKeepingStrategy
that calls a Filter for each suffix part from the current request to decide if it should be kept when constructing a new suffix.
-
-
Constructor Summary
Constructors Constructor Description FilteringSuffixStateStrategy(java.util.function.Predicate<java.lang.String> suffixPartFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.util.List<java.lang.String>
getSuffixPartsToKeep(@NotNull org.apache.sling.api.SlingHttpServletRequest request)
Implement this method to return those suffix parts that should be kept at the beginning of the suffix to construct to keep the page's state
-
-
-
Method Detail
-
getSuffixPartsToKeep
@NotNull public @NotNull java.util.List<java.lang.String> getSuffixPartsToKeep(@NotNull @NotNull org.apache.sling.api.SlingHttpServletRequest request)
Description copied from interface:SuffixStateKeepingStrategy
Implement this method to return those suffix parts that should be kept at the beginning of the suffix to construct to keep the page's state- Specified by:
getSuffixPartsToKeep
in interfaceSuffixStateKeepingStrategy
- Parameters:
request
- Current request- Returns:
- a list of suffix parts
-
-