Class FilteringSuffixStateStrategy

    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FilteringSuffixStateStrategy

        public FilteringSuffixStateStrategy​(java.util.function.Predicate<java.lang.String> suffixPartFilter)
        Parameters:
        suffixPartFilter - the Predicate that defines which suffix parts are allowed
    • 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 interface SuffixStateKeepingStrategy
        Parameters:
        request - Current request
        Returns:
        a list of suffix parts