Package io.wcm.handler.url.suffix
Class DiscardSuffixStateStrategy
java.lang.Object
io.wcm.handler.url.suffix.DiscardSuffixStateStrategy
- All Implemented Interfaces:
SuffixStateKeepingStrategy
@ProviderType
public final class DiscardSuffixStateStrategy
extends Object
implements SuffixStateKeepingStrategy
Simple
SuffixStateKeepingStrategy that just discards the suffix from the current request-
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
-
DiscardSuffixStateStrategy
public DiscardSuffixStateStrategy()
-
-
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
-