Interface SuffixStateKeepingStrategy

All Known Implementing Classes:
DiscardSuffixStateStrategy, FilteringSuffixStateStrategy

@ConsumerType public interface SuffixStateKeepingStrategy
Interface for strategies that decide which parts from the current request's suffix should be kept when constructing new links with the SuffixBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull List<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 Details

    • getSuffixPartsToKeep

      @NotNull @NotNull List<String> getSuffixPartsToKeep(@NotNull @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
      Parameters:
      request - Current request
      Returns:
      a list of suffix parts