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 Object
implements SuffixStateKeepingStrategy
Implementation of
SuffixStateKeepingStrategy 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 -
Method Summary
Modifier and TypeMethodDescriptiongetSuffixPartsToKeep(@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
-
Constructor Details
-
FilteringSuffixStateStrategy
- Parameters:
suffixPartFilter- thePredicatethat defines which suffix parts are allowed
-
-
Method Details
-
getSuffixPartsToKeep
@NotNull public @NotNull List<String> getSuffixPartsToKeep(@NotNull @NotNull org.apache.sling.api.SlingHttpServletRequest request) Description copied from interface:SuffixStateKeepingStrategyImplement 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:
getSuffixPartsToKeepin interfaceSuffixStateKeepingStrategy- Parameters:
request- Current request- Returns:
- a list of suffix parts
-