Interface PathFilter

    • Field Detail

      • ALL

        static final PathFilter ALL
        The "Catch all" item filter.
      • NONE

        static final PathFilter NONE
        The "Miss all" item filter.
    • Method Detail

      • matches

        boolean matches​(@NotNull
                        @NotNull String path)
        Checks if the given path matches this filters criteria.
        Parameters:
        path - the path to check
        Returns:
        true if this filter matches the criteria; false otherwise.
      • isAbsolute

        boolean isAbsolute()
        Checks if the pattern is absolute, i.e. does not start with a wildcard.
        Returns:
        true if pattern is absolute
      • translate

        @NotNull
        @NotNull PathFilter translate​(@Nullable
                                      @Nullable PathMapping mapping)
        Translates this path filter with the given mapping. Note that only absolute filters can be translated.
        Parameters:
        mapping - the mapping to apply
        Returns:
        the new filter
        Since:
        2.4.10